chen bin's vimrc
Vim script
Pull request Compare This branch is 110 commits ahead, 28 commits behind vgod:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload
bundle
colors
.gitignore
README.org
gvimrc
install-vimrc.sh
vimrc

README.org

Chen Bin (redguardtoo)’s vimrc

  • Github: git://github.com/redguardtoo/vimrc.git
  • WIN32 is fine
  • NO Ruby/Python/Perl dependency. The only language except vim script I can accept is C
  • This vimrc is light weight because I’m Emacs user now
  • No “git submodule”
  • Vim 7+ requried

Install

Linux

git clone https://github.com/redguardtoo/vimrc.git ~/.vim;cd ~/.vim;./install-vimrc.sh

Windows (easy way)

  • Install CYGWIN
  • In CYGWIN bash shell, run exact the same command as in previous Linux section.
  • Set the value of environment variable HOME to the full path of parent directory of .vim

Windows (hard way)

  • Check out from github
cd "C:\Program Files\Vim""
rmdir /s vimfiles # This deletes your old configurations. If you want to keep it, use move instead of rmdir
git clone https://github.com/redguardtoo/vimrc.git vimfiles
  • Install vimrc. Add the following line at the end of C:\Program Files\Vim\vimrc.
source $VIM/vimfiles/vimrc

Plugins

Pathogen

Pathogen let us install a plugin as a bundle in ~/.vim/bundle seprately.

Nerd Tree

A tree explorer plugin for navigating the filesystem.

Useful commands:

  • `:Bookmark [name]` - bookmark any directory as name
  • `:NERDTree [name]` - open the bookmark [name] in Nerd Tree

NERD commenter

Press “,ci” or “,cc” to comment/uncomment lines.

AutoClose

Inserts matching bracket, paren, brace or quote.

vim-surround

deal with pairs of surroundings.

matchit

extended % matching for HTML, LaTeX, and many other languages.

YankRing

Maintains a history of previous yanks, changes and deletes.

`:help yankring` to see more info.

cmake

Syntax highlight CmakeLists.txt

Ctrlp

Search files

syntax checker for all languages

syntastic/

taglist

List the structure of the source code

easymotion

Press <Space> to jump to the beginning of words

fugitive

For git!

zoomwin

Zoom in/out window. Press “,ff”

vim-abolish

`:%Subvert/facilit{y,ies}/building{,s}/g` replace “facility” to “building” and “Facilities” to “Buildings”.

vim-markology

“m+” => add mark “m=>” => delete mark “m,” => toggle mark “m?” => list marks “m~” => quick fix window

Check its manual.

undotree

Undo and redo in tree

Other good references