Sometimes I make a change, then in my scramble to move to somewhere else that I want to repeat the change, I accidentally make some edit (e.g.
I would normally undo the accidental edit with
u, but now I can't use
. anymore to repeat my last meaningful change, my intended change.
Is there a way I can preserve the last meaningful change I made? Either, have
u revert the last command stored in
., or save myself from accidental edits differently.
I know that 100% of the time I use
u, unless my last command was
., then the command I undo with
u should also not be repeated by
I already know I can use macros to repeat changes, so I am looking for solutions that will work for commands I executed without recording them into macros.