I really like the behavior of YankRing, which lets me access the last several things I've y
anked or d
eleted or c
hanged without thinking.
However a complementary feature like this is completely missing for the .
repeat command, most often when I type something I really want to repeat, then accidentally overwriting that edit by pressing x
to clean something up.
Often it's possible to get back some time still by visual-mode yanking what I just typed, but this is not ideal.
It should be really easy to remember the past few commands.
The question is how possible is it to extract from Vim the representation of the last command contained in whatever stores what .
will do before it gets blown away?
If it is as I fear, the only way is to get a plugin to bind to every single command that could edit something, and instrument it in such a way as to store our own repeat-buffer. This is really not practical because I can already imagine how many other plugins that will break. But, I would still really really want this feature if it is possible in any way.