Personal vim configurations and some plugins which used in my daily job.
I put vim related settings in bundle/config/plugin/config.vim
and isolate other plugins' settings in bundle/config/plugin
directory.
vimrc
, standard version vimrc only config vimruntime with pathogen
plugin.
Clone this repo:
git clone git://github.com/cwgis/vimrc.git ~/.vim
Fetch submodules, in your repos
directory:
sh deploy.sh
Upgrade submodules or plugins, in your repos
directory:
git submodule init
git submodule update
git submodule foreach "git checkout master && git pull"
Add submodule or plugins, in your repos
directory:
git submodule add git://github.com:username/plugin.git bundle/pluginname
-
Some usually used key mappings in normal mode:
a.
nt
to toggle NERDTree on and offb.
bf
to toggle bufexplorer on and offc.
<tab>
and<shift><tab>
to increase and decrease the syntax identation.d.
ii
to Esc and savee.
H
andL
move to first/last letter of linef.
,,
to enable zencoding pluging.
Ctrl + h
andCtrl + l
easier navigation between horizontal split windowsh.
Ctrl + j
andCtrl + k
easier navigation between vertical split windowsi.
space
to clear search highlighting and any message.j.
tt
to toggle Tagbar on and offk.
M
to find related brackets while viewing codel.
zz
to toggle fold on and off -
Remove tailing whitespace automatically while saving.
-
Show tab and whitespace symbols.
-
Jump to last cursor position when opening a file.
-
Auto complete brackets.
-
Auto detect the encodings.
I recommend reading the docs of these plugins to understand them better!
- bufexplorer.zip: Buffer Explorer / Browser. This plugin can be opened with
bf
- desertEx: desertEx colorscheme
- fencview: Auto detect the encodings
- molokai: colorscheme like TextMate
- html5-syntax.vim: Plugin of HTML5 Syntax highlighting
- neocomplcache: Plugin to provides keyword completion system
- nerdcommenter: Plugin for intensely orgasmic commenting
- nerdtree: Plugin to display a tree explorer for vim, This plugin can be opened with
nt
- tagbar: Plugin to display tags in a window, ordered by class, This plugin can be opened with
tt
- taglist: Source code browser
- vim-css3-syntax: Add CSS3 syntax support to vim's built-in
syntax/css.vim
- vim-javascript: Vastly improved vim's javascript indentation
- vim-markdown: Syntax highlighting and matching rules for Markdown
- pathogen.vim: Manages the runtime path of the plugins
- vim-powerline: The ultimate vim statusline utility
- vim-surround: Plugin to provide mappings to easily delete, change and add such surroundings in pairs
- genutils: General utility functions
- lookupfile: Lookup files using Vim7 ins-completion
- vim-coffee-script: CoffeeScript syntax support
- vim-jsx: JSX syntax support
- scss-syntax.vim: SCSS syntax support
If there's any question or comment, feel free to let me know
email (caiwengui0927@gmail.com)
weibo sina