sponsor Vim development Vim logo Vim Book Ad

basic Tip #69: dot makes life easier

 tip karma   Rating 58/32, Viewed by 3415 

created:   May 30, 2001 3:13      complexity:   basic
author:   Erhan      as of Vim:   5.7

You can copy and paste the last changes you made in the last insert mode
without using y and p by pressing . (just dot).
Vim memorizes the keys you pressed and echos them if you hit the dot key.
You must be in command mode as usual.
It can be helpful...

 rate this tip  Life Changing Helpful Unfulfilling 

<<Delete key | running a command on all buffers >>

Additional Notes

erhan at aybim.com.tr, May 30, 2001 23:22
You can also repeat the last command you write by pressing dot.
So, it makes it easier to repeat 2-3 character long commands.
Anonymous, June 4, 2001 13:23
duh.
Anonymous, September 10, 2001 1:11
You can insert last change with C-A in Insert mode too.
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo