1. 打开设置文件: [html] view plain copy print ? sudo vim /etc/vim/vimrc 2. 添加以下代码: [plain] view plain copy print ? set smartindent set tabstop=4 set shiftwidth=4 set expandtab set softtabstop=4