Tuesday, August 4, 2009

Make vim easy to use

These are common VIM setting I use to make vim more easy to use.

The following lines should be inserted to ~/.vimrc

#This can make the comment color become lighter (easy to read)
set bg=dark

#Smartindent is very helpful if you use vim for coding purpose
set smartindent

#4 spaces = 1 tab
set tabstop=4
set shiftwidth=4
set expandtab

#Press F5 to enable spell check
map :setlocal spell! spelllang=en_us

No comments:

Post a Comment