Counted Macros

100@a โ€” run a macro a hundred times. Or until it errors out.

Keys: {n}@a

Counts work on macros. 100@a runs macro a up to 100 times; if any iteration aborts (search miss, end of file), playback stops cleanly.

A macro that does its work and moves to the next item is a loop. {n}@a runs that loop n times โ€” but it stops as soon as the macro errors. So you can confidently say "do this 1000 times" knowing it'll stop when there's nothing left.

Run macro a up to 100 times
KeyNote
1
0
0
@
a
Counted macros

See also: Recording and Playing Macros, Counts