vim /etc/vim/vimrc
加入三行内容:
set ts=4 set expandtab set autoindent
ok...
ubuntu 下vim修改tab键为4个空格
原文:http://my.oschina.net/mxs/blog/396307