I'd like to optimize the initialization of a register when I use it in a macro.
I usually initialize my register by doing something like q:i0 <Esc> "eyiw:q, but I think there is a better way... I'd like to avoid entering insert mode if possible.
I'd like to optimize the initialization of a register when I use it in a macro.
I usually initialize my register by doing something like q:i0 <Esc> "eyiw:q, but I think there is a better way... I'd like to avoid entering insert mode if possible.
Copyright © 2021 Jogjafile Inc.
qaq(start and immediately stop recording) clears registera.So, to clear register
qand start recording (e.g. a recursive macro), useqqqqq...From the command-line, you can also do:
or