Editing macro in Vim
You’ve stopped recording Vim macro in
q register, and then realized that you forgot to add something. There’s no need to record it again. You have at least two ways to edit the macro.
If the missing part should land at the very end, press Qq, add the missing part and stop recording as usual, by pressing
If you need to fine-tune the whole macro, print it with "qp, edit and put it back to the
q register with, for example: "qyil.