编辑 vim 配置文件
vim /etc/vimrc
将以下代码添加至文件末尾
set number // 设置显示行号 set autoindent // 设置 自动缩进 set ts=4 // 设置缩进尺寸// 保存退出:wq