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:
没有评论:
发表评论