New Vim users are lost without familiarity of any commands. Without these five commands, you cannot open a file, save it, or do anything productive.
Five core Normal-mode commands are enough to survive: insert text, delete characters, save, and quit.
Essential commands for Level 1 (Survival):
| Command | Action |
|---|---|
i | Enter Insert mode (type text) |
x | Delete character under cursor |
:wq | Save and quit (:w = save, :q = quit) |
dd | Delete (cut) the current line |
p | Paste the last deleted/yanked text |
Recommended additions:
hjkl— cursor movement (←↓↑→),jlooks like down arrow:help <command>— show help for any command (:helpfor general help)
- All five commands work in Normal mode
ddboth deletes and yanks (stores in default register):wqfails if file is read-only — use:wq!to forceppastes after cursor,Ppastes before cursor
xworks on characters, not bytes in multi-byte encodingsddcopies to register, sopcan retrieve it:wqsaves even without changes — use:xto save only if modified
- Vim Modes — All commands work in Normal mode
- Text Objects — Extend deletion/selection beyond single lines
- Navigation — Moving efficiently within lines and files
- Repetition — Repeat commands with counts