使用root权限打开 /etc/vim/vimrc 添加下列配置 set tabstop=4 set softtabstop=4 set shiftwidth=4 set noexpandtab set nu set autoindent set cindent 然后保存 相关文章: