How can I paste the last string of text that I entered when I was in insert mode? I think I've done this before on accident but I can't recall how.

link|improve this question

76% accept rate
feedback

1 Answer

I believe the command you're looking for is simply . (period/full stop key). It's a normal mode command, so simply press the key in normal mode.

link|improve this answer
1  
. in normal mode will repeat the last change. If you want to paste the last inserted text it can be found in the . register. e.g. ".p In insert mode to insert the last inserted text use <c-a> – Peter Rincker Sep 26 '11 at 14:13
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.