The single idea Vim is built on
In a normal editor, every key types a character. In Vim, every key has a job that depends on which mode you're in. In Normal mode, j moves down. In Insert mode, j types the letter j. Same key, two completely different effects.
This is alien for about a day. After that it stops feeling alien and starts feeling obvious — because most of what you do in an editor isn't typing fresh characters, it's navigating and rearranging text that's already there. Vim optimizes for the common case.
The four modes you'll use every minute
- Normal mode (the default). Keys are commands: move, delete, copy, paste, search. You spend most of your time here. Pressing
Escalways brings you back. - Insert mode. Keys type characters, exactly like a normal editor. Enter with
i(or one of its variants below). Exit withEsc. - Visual mode. You select text first, then operate on it. Enter with
v(character),V(line), orCtrl-v(rectangular block). - Command-line mode. Type
:and a command follows. Used for save, quit, search-and-replace, settings, everything scriptable.
Why modes are a feature, not a quirk
In a modeless editor, every command needs a modifier: Cmd+S, Ctrl+F, Ctrl+Shift+K. The keyboard runs out of comfortable chords fast. In Normal mode, every single key can be a command — that's 50+ unmodified commands plus every shifted key on top. Vim has more keyboard real estate to work with because it doesn't waste home-row keys on inserting letters.
How to know which mode you're in
- The bottom-left status shows
-- INSERT --,-- VISUAL --,-- VISUAL LINE --,-- VISUAL BLOCK --, or nothing (= Normal mode). - The cursor shape often differs by mode (block in Normal, beam in Insert) when your terminal supports it.
- If random characters seem to be "happening," you're in Normal mode and your keystrokes are commands. Press
ito type, orEscto make absolutely sure you're in Normal.
The Esc reflex
Every Vim user develops the same reflex: hit Esc between actions to anchor yourself in Normal mode. When in doubt, Esc. It's the equivalent of "taking your finger off the trigger." You'll internalize it in a week.