Here are some of my favorite .vimrc lines.
Save quickly from any mode by pressing CTRL+:
imap <C-\> <Esc>:w<Cr> map <C-\> <Esc>:w<Cr>
Make indenting and de-indenting in visual mode preserve the selection:
vnoremap > ><CR>gv vnoremap < <<CR>gv
Quick case insensitive search with double slash or ...read more