日本搞逼视频_黄色一级片免费在线观看_色99久久_性明星video另类hd_欧美77_综合在线视频

國內最全IT社區平臺 聯系我們 | 收藏本站
阿里云優惠2
您當前位置:首頁 > 互聯網 > vim編輯器替換功能詳解

vim編輯器替換功能詳解

來源:程序員人生   發布時間:2015-06-04 07:34:41 閱讀次數:2333次

轉載自http://www.uhdesk.com/?p=29


he substitute command searches for a text pattern, and replaces it with a text string. There are many options, but these are what you probably want:


:%s/foo/bar/g
Find each occurrence of ‘foo’ (in all lines), and replace it with ‘bar’.


:s/foo/bar/g
Find each occurrence of ‘foo’ (in the current line only), and replace it with ‘bar’.


:%s/foo/bar/gc
Change each ‘foo’ to ‘bar’, but ask for confirmation first.


:%s/<foo>/bar/gc
Change only whole words exactly matching ‘foo’ to ‘bar'; ask for confirmation.


:%s/foo/bar/gci
Change each ‘foo’ (case insensitive) to ‘bar'; ask for confirmation.
This may be wanted after using :set noignorecase to make searches case sensitive (the default).


:%s/foo/bar/gcI
Change each ‘foo’ (case sensitive) to ‘bar'; ask for confirmation.
This may be wanted after using :set ignorecase to make searches case insensitive.
The g flag means global

生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 亚洲电影自拍 | 国产日韩中文字幕 | 91麻豆精品国产自产在线观看一区 | 久久成人免费视频 | 欧美日韩精品二区 | 天堂中文在线网 | 一级片久久 | 三区视频 | 久久性片| 久久久久国产精品午夜一区 | 在线免费国产视频 | 97视频成人| 男女爱爱免费视频 | 欧美久久一区 | 久久99精品国产91久久来源 | 久久综合影视 | 日本成人在线网站 | 在线成人 | 国产精品一区自拍 | 精品美女 | 日韩激情在线观看 | 免费黄网站在线观看 | 亚洲乱码国产乱码精品精 | 免费国产高清 | 91精品国产人妻国产毛片在线 | 伊人久久免费 | 国产在线日韩 | 日韩欧美精品在线 | 久久婷婷亚洲 | 精品999久久久 | 国产精品一二三四区 | 在线观看日韩精品 | 亚洲一区二区三区久久 | 久久久麻豆视频 | 欧美黑人xxxx | 暖暖日本在线视频 | 黄色电影在线免费看 | 91麻豆蜜桃一区二区三区 | 色婷婷一区二区三区四区成人网 | 中文字幕二区在线 | 成人欧美一区二区 |