This plugin package is mainly configured for developing C/C++ project. Therefore many setup may not be as convenient for all-purpose editing.
For impatience, downloads here. Unpack it, _vimrc is the configuration file, and _vim folder contains the plugins. This package requires vim7.3 or higher, otherwise some options have to be disabled. For Windows, place the files in the vim installation folder; for linux/unix, rename them to .vimrc and .vim, and place them in your home directory.
The following are the details of the package.
Misc
Line number is relative by default for the ease of counting lines and offsets. 81th column is highlighted for code formatting.
Key mappings
insert mode: jj to normal mode, zz to adjust display region, C-l/k to move cursor around.
normal mode: C-h/j/k/l to switch among split window, F12 to close window, F2 to insert date.
auto templating for code sniplets. type tab after keywords such as “for”, “if”.
The script is modified for compatibility with NeoComplCache. When the auto-completion pops, tab rotate around the candidates, otherwise, it triggers sniplet templates.
F6 to generate the tags file. this is essential for C-] jumps to definition. Note that for MAC OS has a shipped ctags version that cannot support the command, so use macports or homebrew to install the excuberant ctags accordingly.
A ( following function name will show the signiture, auto-completion is temporarily disabled to keep the display. ) ends the session and re-activate the auto-completion. Script modified.