vim配置 在/etc/vimrc文件中进行设置。 1. tab变空格 set tabstop=4 #设置一个tab为4个空格 set shiftwidth=4 #设置4个空格为一个tab set expandtab #将tab显示为空格