1、vim 设置tab为4个空格 1、vim 设置tab为4个空格vim /etc/vimrc # 在文件末尾添加set ts=4set expandtabset autoindent 保存退出即可:x