多多色-多人伦交性欧美在线观看-多人伦精品一区二区三区视频-多色视频-免费黄色视屏网站-免费黄色在线

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

vim編輯器替換功能詳解

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

轉載自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

生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈
程序員人生
------分隔線----------------------------
分享到:
------分隔線----------------------------
關閉
程序員人生
主站蜘蛛池模板: 欧美性色欧美a在线观看 | 免费看黄网站大全 | 国产精品福利片免费看 | 欧美日韩乱国产 | 奇米4444| 亚洲精品推荐 | 伊人色婷婷综在合线亚洲 | 91久久九九精品国产综合 | 在线观看视频免费入口 | xx00视频| 亚洲毛片在线 | 成人 在线欧美亚洲 | 精品一区二区三区在线视频观看 | 国产在线精品一区二区中文 | 欧美最猛性xxxxx喷水 | 亚洲动漫在线观看 | 日本资源网 | 午夜欧美在线 | 天天综合欧美 | jizz成熟丰满中国妇女 | 日韩欧美一区二区精品久久 | 国产成人精品一区二区 | 午夜性色福利视频 | 欧美jizz8性欧美 | 黑粗硬大欧美视频 | 国产精品日韩欧美一区二区 | 久久国产视屏 | 五月天在线播放视频在线 | 日韩高清在线高清免费 | www.免费黄色 | 亚洲综合黄色 | xx小视频 | 亚洲欧美精品一区二区 | 日本一区视频在线播放 | 午夜久草 | 亚洲一区二区三区视频 | 欧美xxxx性特级高清 | 欧美xxxx做受欧美人妖 | 久久lu| 2022国内精品免费福利视频 | 亚洲情a成黄在线观看动 |