linux编辑文件时显示行号-转载-醉糊涂仙

原文地址:https://blog.csdn.net/u010916338/article/details/77511198

一,临时设置行号

一般模式下(i是insert模式,再按esc即为一般模式)

输入:set nu

取消行号:set nonu

:上面的冒号不要忘记输入

二,永久设置行号

vim ~/.vimrc //添加 set nu,:wq保存退出

猜你喜欢

转载自blog.csdn.net/qq_38802291/article/details/83416805