Setting vim with press "tab" key as 4 spaces in VIM.

How to let vim to type "tab" as 4 spaces?
Add following setting in ~/.vimrc

set smartindent                                                                                           

set tabstop=4                                                                      

set shiftwidth=4                                                                                           
set expandtab                                                                                          


Wish this helps.
 regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 3] Install Memcached Storage Engine for MySQL on CentOS 5.4

[Level 1] How to install Jython on Ubuntu.

[Level 2] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Basic SMF hands-on lab