修改Vim的配置 vim /etc/vim/vimrc 但是不建议这么做,可以只修改当前用户的Vim配置 vim ~/.vimrc 配置参数 set ts=4 set expandtab set autoindent 具有兼容性