End insert mode (unless 'insertmode' set)
<Esc>
Example
Insert 0 / 1Normal 1 / 1redInsertion point on line 1, column 4redCursor on line 1, column 3End insert mode (unless 'insertmode' set).
Command applied
Before & after
redInsertion point on line 1, column 4redCursor on line 1, column 3Start in Insert mode. red was just typed in Insert mode; leaving Insert mode puts the cursor on its last character.
Details & Vim help
Example replayed in Vim
End insert mode (unless 'insertmode' set). Use in Insert mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.