Vim Scoops, Learn Vim Motions the Fun Way
~/vim-scoops
$./vim-scoops --learn▉
Learn vim motions with an ice-cream van.
The van is your cursor and the town is your text. Learn Vim motions the tasty way.
Play the full game<br>Try the demo ↓
Try it: one quick level
Drive the van onto the customer with h j k l.
Play the full game →
How to play
Learn the basics, then you're going.
Pick a route
Each level on the town map teaches a small set of motions, shown as badges with what they do.
Drive the van
Press keys to move, with no mouse or arrow keys. The panel echoes every key you press so you can see your motions.
Serve under par
Reach every customer. Match the keystroke par to clear it; beat it to earn a Wizard rank.
New to vim? Read this first
Vim edits text with the keyboard alone. Instead of clicking or holding an arrow key, you press single keys that move the cursor<br>precisely, such as one word forward or to the end of a line. Those keys are called motions , and they are what<br>make experienced vim users fast. This game teaches them one at a time.
You're always in Normal mode here, so every key is a command. Put a number in front to repeat (3j moves down three), and if a key seems to do nothing it's usually waiting for a second key, like f then<br>the letter to jump to. The panel tells you when it's waiting.
Motion & command reference
Every motion the game teaches. Each level only shows the few it needs.
Moving
h j k l<br>Move left, down, up, right
0 ^ $<br>Line start, first shop, line end
w / b / e<br>Hop forward / back / to block end
W B E<br>Same, but over punctuation too
gg / G<br>Jump to the top / bottom row
fx / Fx<br>Fly right / left onto letter x
tx / Tx<br>Pull up before / after letter x
; / ,<br>Repeat the last f/t hop, fwd / back
3j<br>A count before a key repeats it
Editing
Delete the character under the cursor
rc<br>Replace that character with c
dd / yy<br>Cut / copy the whole line
dw de d$<br>Delete to a motion (pair d with a move)
p / P<br>Paste after / before the cursor
xp<br>Swap two neighbours
di" di(<br>Delete inside quotes/brackets (da includes them)
Repeat your last change
u / Ctrl+r<br>Undo / redo
Insert mode
i / a<br>Type before / after the cursor
I / A<br>Type at the line start / end
o / O<br>Open a line below / above
cc / C<br>Change the line / to end of line
Delete a char and start typing
ciw ci"<br>Change a word or the text inside quotes
Esc<br>Back to normal mode
Visual mode
Highlight a range as you move
Highlight whole lines
Ctrl+v<br>Highlight a column (block)
d / y / c<br>Delete / copy / change the highlight
rc<br>Replace every highlighted char with c
Jump to the other end
Search
/textEnter<br>Search and jump to the next match
n / N<br>Next / previous match
Search the word under the cursor
Registers & macros
"ayy<br>Copy the line into bin a (any a-z)
"ap<br>Paste from bin a
qa … q<br>Record keys into bin a, then stop
@a<br>Replay bin a (count works: 3@a)
@@<br>Replay the last routine
Vim Scoops needs JavaScript enabled to run the game.