Here's a neat trick. If you want to execute an ex command on all windows, you can do the following:
:windo command
so...
:windo %s/foo/bar/g would find and replace foo with bar in all windows.
Subscribe to:
Post Comments (Atom)
A blog dedicated to text editing and general exploration of computing knowledge
2 comments:
There's also :bufdo and :tabdo.
a question,
how send a command output to new tab or new buffer ?
thanks.
Post a Comment