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.
:'<,'>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.
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.