How do I copy contents of the dot operator into a register?

68 Views Asked by At

I have a last command in vim which can be replicated by the 'dot' operator. However, I now wish to execute another operation, and then go back and execute the previous command. When I execute my new command, the 'dot' operator will get overriden to the new command. How can I copy the contents of the 'dot' operator to a register to execute it later?

Or, is there another vim operation which achieves this more naturally?

0

There are 0 best solutions below