conke 发表于 2003-10-22 21:00:33

How to find and replace in VI?

As we all know, using command "/pattern" or "?pattern" in vi/vim will locate the pattern string.
But, how to replace the pattern with another string ??

UMBRO 发表于 2003-10-22 22:14:09

http://vcd.cosoft.org.cn/
或许你能在这里找到答案 :P

scbfth 发表于 2003-10-23 00:32:39

%s/pattern/replacestring/g for whole file

conke 发表于 2003-10-23 00:36:14

What does the "g" mean here?Global?
Thanks for you reply, and i will try.
页: [1]
查看完整版本: How to find and replace in VI?