Resume where you stopped typing
gi
Example
You left Insert mode just after Hello, then moved to Notes on line 3.
Hello
NotesCursor on line 3, column 1Hello
NotesInsertion point on line 1, column 6Details & Vim help
Return to the last Insert-mode stopping point and start inserting there.
Continue a sentence after looking up something elsewhere in the same buffer.
The position belongs to the current buffer. A later Insert-mode session can replace the saved stop even without typing. Edits can move or invalidate it.
gi returns to the saved Insert-mode stopping position in this buffer. It does not add text by itself.
Try it in Vim
- Finish an insertion with <Esc>.
- Move elsewhere in the same buffer using Normal-mode commands, without starting another Insert-mode session.
- Press gi and continue typing.