vim 编辑器设置 行号和缩进

编辑 vim 配置文件

vim /etc/vimrc

将以下代码添加至文件末尾

set number // 设置显示行号
set autoindent // 设置 自动缩进
set ts=4 // 设置缩进尺寸

// 保存退出
:wq
Talk is cheap, show me the code.
原文地址:https://www.cnblogs.com/cidgur/p/8681067.html