Use Case
I'm in normal mode. I've not explicitly thought about recording a macro, but I make a single command change. I can now repeat this action by using dot.
I now realize it's a useful action to save in a macro to use later rather than typing the whole command every time. I can either attend to all the changes which need this command right now by using dot, or I can continue with editing and use this command later by saving it in a macro.
The latter is what I want to do, but the easiest way I can think of doing it is not easy - undo my change, start recording a macro and retype the command to make the required change and stop recording the macro.
What I've Tried so Far:
Recording dot in a macro doesn't work because it records the dot and not the change which dot performs. (For example, let's say the command stored in dot was d5w
If you start recording a macro and do the action via . expecting that it'll delete 5 words every time you run the macro, then that will not happen. The next time you run the macro it'll do dot and not the command d5w
. This means that if you made some other change after recording the macro - say delete 3 words using d3w
and it was the last change you performed, then when you run the macro it will delete 3 words and not 5, because it's just running .
)