set backupdir=~/.vim/backup set backup set directory=~/.vim/tmp
set number
" autocomplete parenthesis, brackets and braces inoremap ( ()<Left> inoremap [ []<Left> inoremap { {}<Left> " autocomplete quotes inoremap ' '<Esc>:call QuoteInsertionWrapper("'")<CR>a inoremap " "<Esc>:call QuoteInsertionWrapper('"')<CR>a inoremap ` `<Esc>:call QuoteInsertionWrapper('`')<CR>a function! QuoteInsertionWrapper (quote) let col = col('.') if getline('.')[col-2] !~ '\k' && getline('.')[col] !~ '\k' normal ax exe "normal r".a:quote."h" end endfunction
noremap <f1> :bprev!<CR> noremap <f2> :bnext!<CR>
If you need something specific try http://vim.wikia.com/
If you need something specific try http://vim.wikia.com/