News for hackers. Stuff that matters.
Re:Intermediate Vim by Izkata on Wednesday May 01, 2019 @11:06AM (#19797670)
A slight alternative to recursive macros, macros are repeatable actions, so this works: 100@a

I use it so I can run the macro in batches a couple times and check if I made any mistakes, before picking an absurdly high number to hit the whole file.

Re:Intermediate Vim by hhmc on Wednesday May 01, 2019 @11:27AM (#19797954)
Another alternative, visually select the region you're interested in then:

:'<,'>normal @q

to apply the macro (in q) to that region. You might want to remap the above command to some shortcut if you find it useful often.