This zhenlong's vimrc
My personal Vim configurations and some plugins which I used in my daily job.
I put Vim related settings in
plugin/settings/Settings.vim, and isolate other plugins' settings in
Installation and Requisites:
cd ~to change directory to your home directory.
copy files to your home directory:
git clone vundle
zhenlong-vimrcdirectory and execute the
:BundleInstall!to get latest version modules:
link the vimrc to
ln -s .vim/vimrc .vimrc
- :BundleInstall --init
- :BundleInstall! --update
Features and Key Mappings:
Resize splited windows automatically, so that you get a bigger editing room if you're working with a smaller screen. (stole from Gary Bernhardt)
Toggle between working mode and presentation mode by
<leader>z, but only work in GUI version Vim.
some usually used key mappings in normal mode:
<F1>to toggle a Calendar window on and off.
<F2>to toggle NERDTree on and off.
<F4>to toggle Taglist window.
:source %for you.
<F7>to switch to previous tab, and
<F8>to the next tab.
<ctrl>pwill launch a quick window to match keywords from your current working directory, not only file name, but also path name. And
<ctrl>w uwill match from your MRU(Mostly Recent Used) files, which is also frequently used.
<leader>twice to toggle comment on and off.
<shift><tab>to increase and decrease the syntax identation.
.vimrcin a new tab.
<leader>0to edit or create
README.mdin current working directory.
<leader>sfor ack search l.
<leader>ffor nohlsearch m.
Remove tailing whitespace automatically while saving.
if you can not found
ctags command, just find your ctags path and replace my settings in
let Tlist_Ctags_Cmd = '/your/path/to/ctags'
and Exuberant Ctags is recommended.
Enjoy it, and if there's any question or comment, feel free to let me know :)