Tuesday, December 18, 2007

First You have to install the vim-full package using following command.

sudo apt-get install vim-full

This command will install version of vim compiled with support for the GNOME2 GUI and scripting support for Perl, Python, Ruby, and TCL. After installation process when you open the vim editor it will not support syntax highlighting or any other features which must enabled using commands. To enable those basic features, you can use .vimrc file inside your home folder. You can find a sample .vimrc file inside /usr/share/vim/vim71 (or vim70) called vimrc_example.vim. Simply copy this file to your home directory using following command.

cp vimrc_example.vim ~/.vimrc

Now you are ready to explore the power of Vim.

Here are some links to download cheat sheet for Vim.

  1. http://www2.cs.uidaho.edu/~rinker/ed03.pdf
  2. http://tnerual.eriogerg.free.fr/vimqrc.pdf
  3. http://bullium.com/support/vim.pdf

Happy editing!