欢迎来到Silly-Bird的博客园
root用户下 进入 /etc/vimrc
1 # vi /etc/vimrc
在文件最后面追加如下代码:
set nu set tabstop=4
显示行号: set nu
设置缩进: set tabstop=4
最后,保存退出。