[关闭]
@woshichuanqilz 2015-11-15T03:00:55.000000Z 字数 741 阅读 1228

Search And Replace in Multi File

Vim


This the link of the original article


I will make the article more pratical without the explain of the cmd, more detail you can see in the link above

  • The command we need in this operation :
  1. arg and related cmd argadd argdel and so on
  • Step one: Use command line to open multi files, like "gvim *.cpp" will open all the cpp file in current fold, you should notice that you just get one file visible in the vim instead of multi tabs in the vim to open all the file. But how can we get the list of the files which has been opened just now.
  • Step two: Use command arg in the Vim and you will get the list of the file you just opened
  • Step three: Use command argdo to exe the command in the list of the arg like ":argdo %s/cmd/command/ge | update"

PS: We should read the origin article carefully, cuz I haven't notice we should open the multi file in the command line, and I make a big mistake.

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注