Skip to content

7.5. Running Commands On The Argument List

shinokada edited this page Feb 28, 2014 · 1 revision

Use Vim

To execuste commands for all files in the argument list, use :argdo.

This example uses a substitute with :argdo. g for global and e for ignoring errors which would be displayed for files with no matches, and combined with update all files.

:argdo %s/this/that/ge | update

Use bufdo for buffers and windo for windows.

Clone this wiki locally