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
i / a / o / O
The four ways to enter insert mode: i inserts BEFORE the cursor, a inserts AFTER it, o opens a new line BELOW and enters insert mode, O opens a new line ABOVE. Choosing the right one saves a motion or two before you start typing.
r / R
r replaces the single character under the cursor with the next key you press — no need to enter insert mode. Capital R enters REPLACE mode, where every character you type overwrites the one under the cursor until Escape.
v / V / Ctrl-V
v enters character-wise visual mode, V enters line-wise visual mode, and Ctrl-V enters visual BLOCK (column/rectangle) mode. Once selected, operators like d, y, c, or > act on the whole region.