1、要有root用户权限
2、已经安装vim
3、编辑/etc/vim/vimrc 文件,添加set ts=4
转载于:https://www.cnblogs.com/chengd/p/7128859.html