默认vim的tab缩进是八个空格, 太长了, 需要改短一点.
第一步: 找到vimrc文件所在位置
# find / -name vimrc
第二步: 找到以后用vim打开vimrc文件并增加下面两行代码
set ts=4 set expandtab
如下所示, 完成后保存退出即可.