日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Vim 行号的显示与隐藏

發布時間:2023/11/29 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Vim 行号的显示与隐藏 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

2019獨角獸企業重金招聘Python工程師標準>>>

Vim 行號的顯示與隱藏

一、當前文檔的顯示與隱藏

1 打開一個文檔

[root@pcname ~]# vim demo.txt This is the main Apache HTTP server configuration file. It contains the configuration directives that give the server its instructions. See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. In particular, see <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> for a discussion of each configuration directive.

2 顯示行號 vim 命令 :set number 或者 :set nu

1 2 This is the main Apache HTTP server configuration file. It contains the3 configuration directives that give the server its instructions.4 See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.5 In particular, see********為了兩位婁行號效果并節省篇幅,此處省略幾行********16 with "/", the value of ServerRoot is prepended -- so 'log/access_log'17 with ServerRoot set to '/www' will be interpreted by the18 server as '/www/log/access_log', where as '/log/access_log' will be19 interpreted as '/log/access_log'.20

3 隱藏行號 vim 命令 :set nonumber 或者 :set nonu 即可隱藏

二、所有文檔行號的顯示與隱藏

根據需求去配置當前用戶和所有用戶

/etc/vimrc 是系統范圍的初始化配置 ~/.vimrc 個人的vim初始化配置

以當前用戶為列

vim ~/.vimrc

我們在配置文件輸入set number 或者 set nu 保存即可

參考文檔:wang_yubin92

轉載于:https://my.oschina.net/u/3251146/blog/1931872

總結

以上是生活随笔為你收集整理的Vim 行号的显示与隐藏的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。