Often I would record a macro and run it till end of file like
200@q. However, there may be a few lines/instances at the bottom I don't want to run the macro on (like 5 lines). Pressing
u would undo all 200 executions, redoing it takes some time, and I don't want to have to count exactly how many instances I have to use the macro on. (or do what I currently do, binary-search like run-undo)
I'd like to be able to do something like
500@q and then
5 <undo_macro> which runs till EOF & just undoes the last 5 lines/instances.
How can I do such macro-undoing?