VimNinja is an interactive Vim tutorial that teaches Vim the way you’d
learn any language: a few words at a time, in real sentences, every day. 82 short lessons
on a real Vim engine, on the web and as an extension for Chrome, Edge and Firefox.
A small parser written for this page. VimNinja’s own engine runs every one of these on
real text, checked against Neovim.
Lesson 1 · The grammar
A verb, then a noun. That’s most of it.
Every Vim command is a small sentence. d is delete, w
is a word, so dw deletes a word. Put a number in front and it happens
that many times; put i or a before a noun and it means
inside or around (VimNinja’s lesson on
Vim text objects is all about those two). Learn four
verbs and four nouns and you can already say sixteen things:
Four verbs and four nouns, and what each pair says
wa word
$to line end
i"in quotes
apa paragraph
ddelete
dwDelete a word.
d$Delete to the end of the line.
di"Delete inside the double quotes.
dapDelete the paragraph and the blank line after it.
cchange
cwChange a word.
c$Change to the end of the line.
ci"Change inside the double quotes.
capChange the paragraph and the blank line after it.
ycopy
ywCopy a word.
y$Copy to the end of the line.
yi"Copy inside the double quotes.
yapCopy the paragraph and the blank line after it.
gUuppercase
gUwUppercase a word.
gU$Uppercase to the end of the line.
gUi"Uppercase inside the double quotes.
gUapUppercase the paragraph and the blank line after it.
Lesson 2 · Two classrooms
The same course, on the web and in your toolbar.
Both run the same Vim engine and the same lessons, and neither needs a terminal.
i The website · vimninja.com
The whole course, in your browser.
The Vim course: 82 chapters in 14 tracks, a few
minutes each. The first 13 are free; no sign-up to start.
Vim practice: drills, and the Daily 5, which
brings back what you’re starting to forget.