1、打开终端窗口。
2、vi ~/.vimrc进入配置文件。
3、点击键盘i。
4、输入
set ts=4
set expandtab
set autoindent
5、按esc,输入:wq保存文件。
6、现在新的文档就会tab四格了。