一个对“web前端”和“互联网创业”有着浓厚兴趣的90后草根站长!
我们在写代码时要经常用到搜索与替换
那么在vim编辑器中该如何操作
搜索 /searchword
/searchword
替换所有:1,$s/replaceword/newword/gc
1,$s/replaceword/newword/gc
从当前行开始替换: ,$s/replaceword/newword/gc
,$s/replaceword/newword/gc
其中
g全部替换
g
c确认
c
如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术
转载请注明:vim搜索与替换 出自老鄢博客 | 欢迎分享
表情