Insert and Back Again
i to type, Esc to come home
Press i to enter Insert mode and type. Press Esc to return to Normal. Build the Esc reflex.
You are in Normal mode. The cursor sits on a character. Keys do things โ they are commands. You want to type some text. How?
| Key | Note |
|---|---|
| i |
Press i. The status line shows -- INSERT --. Now keys do what you'd expect: they type characters.
Type whatever you want. Newlines work. Backspace works. This is just typing.
Coming back
| Key | Note |
|---|---|
| Esc |
Esc returns you to Normal mode. The status line empties. Keys are commands again. Ctrl-[ does the same thing โ handy if your Esc key is far away.
The Escape Habit
Build a reflex: after every thought, press Esc. Finished a sentence? Esc. Finished a function name? Esc. Done with that loop body? Esc. Normal mode is your resting state, not Insert. The minute you finish typing, get back to where you can move.
This sounds annoying. After a week, you stop noticing. After a month, you no longer remember what mode you are in โ you just know which command to issue, and the right mode shows up.
Reference
| Key | Action |
|---|---|
| i | Insert before cursor |
| Esc | Return to Normal mode |
| Ctrl-[ | Return to Normal mode (alias) |
| Ctrl-C | Return to Normal mode (cancels pending state too โ but does not run autocmds; usually use Esc) |
Worked example โ i and Esc
Enter Insert with i; leave with Esc.
Insert mode is for typing characters; Normal mode is for everything else.
See also: Modal Editing, The Modes, More Ways into Insert, Exiting Insert Mode