interactive tutorial
Learn Vim btw
An interactive, level-by-level path to the Vim grammar — practice each concept in a real editor as you read.
Watch someone fluent in Vim and it looks like a magic trick. Lines vanish, text rearranges itself, the cursor teleports, and their hands never leave the home row. Here’s the secret they won’t tell you: they didn’t memorize hundreds of shortcuts. They learned a grammar, and the grammar does the rest.
The Vim Grammar
Vim is a tiny language: operator + motion (or text object). Learn the words once and you stop recalling commands. You start composing them, mid-thought, for edits you’ve never made before.
d(delete) +w(word) =dw— delete a wordc(change) +i"(inside quotes) =ci"— change the content inside quotesy(yank/copy) +ap(a paragraph) =yap— copy an entire paragraph
The operator says what to do. The motion says where. That’s the whole idea. Every other feature in Vim is a variation on this one sentence.
How This Works
Every level below has a short explanation followed by hands-on exercises. Each exercise ships with a real Vim editor right in the page — the same keybindings you’d get in Vim or Neovim. Read the concept, then practice it immediately in the editor below it.
Press i to enter Insert mode, Esc to return to Normal mode, and experiment freely. Each editor has a reset button to restore the starting text.
The Learning Path
Go in order, one level at a time. The fastest way to quit Vim is to swallow it whole on day one. Don’t. Land each level until the keys feel automatic, then move up. Start at Level 0.
levels
- Vim Modes Normal, Insert, Visual, Command — the modes that make Vim fast.
- Basic Movement Move by character, word, line, and file without touching the mouse.
- Search & Precise Navigation Jump straight to what you want with search and in-line motions.
- Inserting Text Enter Insert mode the right way: i, a, I, A, o, O.
- Operators + Motions The superpower: compose operators with motions and text objects.
- Quick Editing x, r, s, J, p, undo/redo, and the mighty dot command.
- Visual Mode Select by character, line, and block, then act on the selection.
- Commenting Code Toggle comments over lines and motions with gcc and gc.
- Multipliers Prefix almost any command with a count to repeat it.
- File & Buffer Navigation Move between files and buffers, save, and quit.
- Macros Record a sequence of edits and replay it across lines.
- Search & Replace The substitute command and regex for surgical edits.
- Marks Drop marks and jump back to exact positions.