vi /etc/vimrc
set smarttab
set autoindent
set cindent
set tabstop=4
set shiftwidth=4
set noexpandtab
vim Settings
原文:http://my.oschina.net/u/2279178/blog/354361