mysqldump brain > blog.sql

VIM made awesome.

meine .vimrc for OSX


  1. vim ~/.vimrc und den unten stehenden Codeblock copy and pasten
  2. Diesen Font installieren
  3. git clone ~/.vim/bundle/Vundle.vim
  4. Vim starten & :PluginInstall ausf├╝hren Folgende Schritte wenn Plugin'Valloric/YouCompleteMe' genutzt wird
  5. cd ~/.vim/bundle/YouCompleteMe 5.1 brew install cmake
  6. / --clang-completer
set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" installed plugins

"onedark colortheme
Bundle 'joshdick/onedark.vim'

"Bundle for statusbar
Bundle 'bling/vim-airline'

"Plugin for multiple cursors
Bundle 'terryma/vim-multiple-cursors'

"advanced code completion
Bundle 'ervandew/supertab'

"Plugin to remove Whitespace
Plugin 'ntpeters/vim-better-whitespace'

"Plugin for formating things
Plugin 'godlygeek/tabular'

"Plugin for multiple languages
Plugin 'sheerun/vim-polyglot'

"Plugin for csv
Plugin 'chrisbra/csv.vim'

" autocomplete
Plugin 'Valloric/YouCompleteMe'

" restore buffers
Plugin 'vim-scripts/mru.vim'

" solarized color theme
Plugin 'lifepillar/vim-solarized8'
"recognize .texfilex correct, otherwise its 'plaintex' and
"the plugin doesn't work
let g:tex_flavor='latex'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

let g:vim_markdown_folding_disabled=1
"Used as $x^2$, $$x^2$$, escapable as \$x\$ and \$\$x\$\$.
let g:vim_markdown_math=1

"Statusbar config
"font and special characters
set guifont=Hack:h12 "make sure to escape the spaces in the name properly
set linespace=3
let g:airline_powerline_fonts=1
set encoding=utf-8
"Sets how many lines of history VIM has to remember
set history=700
"fix slow switch between modes
set timeoutlen=50

"syntax highlighting
syntax enable
"Options for Color Scheme
colorscheme onedark
let g:airline_theme='onedark'

let macvim_skip_colorscheme = 1

"options for solarized color theme
"set background=light
"colorscheme solarized8

"autocomplete for vim commands
set wildmenu

" highlight current line
set cursorline

"Always show current position
set ruler

" show line numbers
set number

" Highlight search results
set hlsearch

" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2

" Return to last edit position when opening files (You want this!)
autocmd BufReadPost *
     \ if line("'\"") > 0 && line("'\"") <= line("$") |
     \   exe "normal! g`\"" |
     \ endif

" Always show the status line
set laststatus=2

Tags: vi vim development osx