Reputation: 58362
Vim's .
(repeat last change) is a very useful feature.
Is there any way to remember the last change on exit (similar to how you can set up your vimrc and viminfo files to remember the last file position on exit)?
I'd like to be able to run Vim from the command line to open a file, hit .
, and have Vim make the same change I just made to the last file I edited.
Upvotes: 0
Views: 114
Reputation: 196586
No. But you can record your change in a register and play it back later:
qa "start recording into register a
(do your thing)
q " stop recording
@a " play back the macro saved in register a
Or open your files from the same Vim session.
Upvotes: 2