Start recording at register, let’s say q:
qq
Do you thing … and stop recording
q
Run the macro:
@q
Repeat the previous macro:
@@