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 1] Rar tool for Solaris.

[Level 2] iif in Python