标签: linux vim
使用vim查找和替换,如何查找和替换字符串模式,如下所示: /local/this/drive/opt/script/与/remote/script
/local/this/drive/opt/script/
/remote/script
答案 0 :(得分:1)
请记住,在Vim中,您不仅可以使用斜杠字符作为分隔符:
:%s_/this/drive/opt/script/_/remote/script_g