This link has been bookmarked by 3 people . It was first bookmarked on 26 Apr 2008, by Ricardo Correa.
This is a link to my super-terrific .vimrc file.
.vimrc
You can also see the entire .vimrc file at the end of this article: #.vimrc.
To make full use of this you also want the .vim directory and everything below it.
I tried to balance vi compatibility and Vim features. I didn't want to make my vim so custom and unique that I would go crazy when I had to go back to a machine without my custom Vim. I tried to add some really useful features, but keep Vim familiar. Some have customized Vim so much that it is nearly unrecognizable (see Cream).
" folding using /search/ pattern " \z " This folds every line that does not contain the search pattern. " see vimtip #282 and vimtip #108 map <silent><leader>z :set foldexpr=getline(v:lnum)!~@/ foldlevel=0 foldcolumn=0 foldmethod=expr<CR> " this folds all classes and function to create a code index. " mnemonic: think "function fold" map zff :/^\s*class\s\\|^\s*function\s\\|^\s*def\s/<CR>:set foldmethod=expr foldlevel=0 foldcolumn=1<CR><CR> " space toggles the fold state under the cursor. nnoremap <silent><space> :exe 'silent! normal! za'.(foldlevel('.')?'':'l')<cr>
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.