2012年10月9日星期二

[Linux] Auto Indent in Vim


Basically, other IDE already support this function.
For VIM, we have to type in following command in ~/.vimrc

set cindent
set smartindent
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2

Also, there is a documentation about indent in VIM available here:

没有评论:

发表评论