Exiting Insert Mode

Three ways out, and why people remap.

Keys: Esc, Ctrl-[, Ctrl-C

Esc, Ctrl-[, and Ctrl-C all exit Insert mode โ€” but they're not identical. Esc and Ctrl-[ trigger InsertLeave; Ctrl-C bypasses it.

There are three ways out of Insert mode. Two are equivalent, one is subtly different โ€” and that subtle difference matters.

The three exits
KeyNote
EscThe canonical exit.
Ctrl-[Identical to Esc (terminal heritage).
Ctrl-CExits, but skips InsertLeave.

Watch

See also: One-Shot Normal Mode, The Modes