Vim Kung-Fu

It’s almost been a year, I have grown from a mediocre to a novice of Vim. And everyday I am learning something new. Starting from it’s powerful mapping tool to it’s ubiquitous plugging which makes it as world’s best IDE (according to me), Vim has been able to survive the ice age along with few reptiles. With many modern text editors with fancy features threatening it’s existence, Vim has been able to maintain it’s fab amongst it’s dedicated fans and followers.

Here are list of plug-ins and tools I use in Vim and I would like to share in this post.


Pathogen helps to manage all the plugins. Here’s a way to install Pathogen in your system


mkdir .vim

git clone git:// pathogen

mv pathogen/autoload ~/.vim/autoload

Now edit your .vimrc and add following lines to the top

call pathogen#runtime_append_all_bundles()

call pathogen#helptags()

Now any plugins you want to intall, you can simply copy to ~/.vim/bundle


DelimitMate provides automatic closing of quotes, parenthesis, brackets, etc. It’s something that will make you lazy and helps you sometimes to save some braincells.


cd ~/.vim

git submodule add git:// bundle/delmitmate

git submodule init && git submodule update


:help delimitMate


It provides bunch of key mapping for very fast and efficient code commenting


cd ~/.vim
git submodule add git:// bundle/nerdcommenter
git submodule init && git submodule update


:help NERDCommenter

Tab to Space

Actually this is not a plugin, but a set of addons to the .vimrc that will do that trick. Add following lines to the ~/.vimrc, which will convert Tabs to the Spaces

set expandtabset

set tabstop=4set

set shiftwidth=4


This is one of best AutoComplete utility I found in ViM


Download supertab.vba and open it (vim supertab.vba) Source the code using (:so%)

Using Folds

Using Folds is great way to manage your code and apply certain changes to the part of the code. Here’s a man page VIM-Fold ManPage VIM-Fold