mode

Escape

Leaves the current mode and returns to normal mode. Vim is modal — most of the time you want to be in normal mode; if you're not sure what mode you're in, mash Escape.

<Esc>   (any mode → normal mode)

Variations

Keystroke Effect
<C-[> Same as Escape (easier reach on some keyboards)
<C-c> Also leaves insert/visual mode, but skips some abbrev/insert-mode autocmd behavior
jk / jj mapping Many users map jk in insert mode to Escape to avoid the reach

Examples

i hello <Esc>

Enter insert, type, then return to normal

V<Esc>

Cancel a visual-line selection

:<Esc>

Abandon a command-line entry without executing

Gotcha

Escape twice is safe and often recommended — the first press might just cancel a partial command like an unfinished 3d. Nothing bad happens.

Related

← All Vim commands · Vim cheat sheet