1. 设置行号很简单。
我们要到命令模式下,输入set number
:set number
or
:set nu
2. 显示当前行行号,在VI的命令模式下输入
:nu
3. 关闭行号
:set nonumber
参考:https://jingyan.baidu.com/article/22a299b5ca65a49e19376acc.html
参考:https://blog.csdn.net/yuanyuan_186/article/details/51306202

博客介绍了Vi/Vim编辑器中设置和关闭行号的方法。在命令模式下,输入set number可设置行号,还提到了显示当前行行号的操作,同时给出了关闭行号的参考链接。

455

被折叠的 条评论
为什么被折叠?



