Vim Recall繁體中文

Resume where you stopped typing

gi

Example

You left Insert mode just after Hello, then moved to Notes on line 3.

Hello

Notes
Cursor on line 3, column 1
Details & 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

  1. Finish an insertion with <Esc>.
  2. Move elsewhere in the same buffer using Normal-mode commands, without starting another Insert-mode session.
  3. Press gi and continue typing.