Q:

Vi: how can I paste the last string of text that I entered when I was in insert mode?

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.

A:

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.

