I want to run a macro I just recorded in register \"x
\" on every single line of an open buffer, from my cursor to end of the buffer, in vim. How do I do that?
make recursive macro:
qa@aq
ex:
qa0gUwj@aq
It'll UPCASE first word from current line to the end of file with single @a. But make sure "a register is empty:
let @a=""
999999@x
, unless you have a very large buffer...
From vim wiki, shortened version: qqqqq to record the macro @qq to finish recording @q to execute it (and will run till end of the file)
Personally I would do
VG:normal @x
Edit: changed register to the one you specified.
You can do (in command mode)
:%normal @x