Block oriented search and replace across multiple files.
Hal Burgiss
hal at burgiss.net
Sun Nov 29 17:57:53 UTC 2009
On Sat, Nov 28, 2009 at 10:25:54AM -0800, Ray Parrish wrote:
> Also, I do not see any indication that Vim can do search, and replace
> across multiple files simultaneously, so I'm back to writing my program,
> which is coming along nicely.
See 'bufdo', 'tabdo', 'windo' commands to operate on multiple opened files.
Depending on where you have the files open (multiple buffers, tabs or
windows).
:tabdo %s/test/x\rx\rx\rx/ge | update
--
Hal
More information about the ubuntu-users
mailing list