标签:
使用root权限打开 /etc/vim/vimrc 添加下列配置
set tabstop=4 set softtabstop=4 set shiftwidth=4 set noexpandtab set nu set autoindent set cindent
然后保存
Ubuntu 设置Vim tab为四个空格
原文地址:http://www.cnblogs.com/tangxin-blog/p/5661532.html