Dup Ver Goto 📝

Execute Macro in All Buffers

PT2/editor/vim/macros vim macro does not exist
To
27 lines, 68 words, 357 chars Page 'ArgDo' does not exist.
:argdo execute "normal @a"

Example: prepend license

Record a macro a that does

:0r license.txt
:w

then

:args *.c

and either

:argdo execute "normal @a"

or

:argdo normal @a

and the macro will be executed for each file. The execute variant allows us to use the | to do

:argdo execute "normal @a" | write