Alex Rivera | Logout

replay a vim macro until end of buffer

Asked 2009-08-18T05:28:27.727
111

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?

I know I can replay the macro n times:

15@x

...or just hold down @ until I reach the the last line, but I want to just hit a few keystrokes and be done with it.

Edit
Report

1 Answer

14

999999@x, unless you have a very large buffer...

answered 2009-08-18T05:31:35.940

Your Answer