使用 vim /etc/vimrc
然后进入之后再
set ruler" show the cursor position all the time
底下再加上
set nu
保存退出 :wq
即可
使用 vim /etc/vimrc
然后进入之后再
set ruler" show the cursor position all the time
底下再加上
set nu
保存退出 :wq
即可
在写shell时候,遇到报错,一般是cat -n 显示行号,再根据行号去看哪一
cd/etcvimvimrc在文件最后添加setnu保存退出!
1、进入当前用户目录2、输入下面命令vim ~/.vimrc 3、退出保存:x4、用vim打开文件验证
命令:`:set number`
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M