I want to record a macro within a macro, like so:
qa
[ first macro ... ]
qb
[ second macro ... ]
q
[ some more stuff, involving @b ... ]
q
However, the second q
is interpreted as a request to stop the first macro, and the rest is interpreted as commands.
Is there any way to begin recording a second macro within a macro?
If not, is there any other way to achieve the desired effect of repeating a certain sequence of keystrokes, while already inside a macro?
b
and then record the macroa
calling@b
?b
has destructive effects, so I can't record it first (unless I want to record it, pressu
a bunch of times, and then start recordinga
).enew
, recording,bd
) or directly edit theb
register by writing in your file the content of your macro and then "recording" it by placing the characters in the register with"by
.