Learn Vim motions with an ice-cream van

Hacker News Top Tools

Summary

Vim Scoops is a free interactive web game that teaches Vim motions by having you drive an ice-cream van through a town, using keyboard commands to reach customers. It provides a fun, hands-on way to learn Vim's movement keys and editing commands.

No content available
Original Article
View Cached Full Text

Cached at: 07/02/26, 05:03 AM

# Vim Scoops, Learn Vim Motions the Fun Way Source: [http://vimscoops.dev/](http://vimscoops.dev/) ~/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\. ## Try it: one quick level Drive the van onto the customer withhjkl\. [Play the full game →](http://vimscoops.dev/game) ## How to play Learn the basics, then you're going\. 1 ### Pick a route Each level on the town map teaches a small set of motions, shown as badges with what they do\. 2 ### 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\. 3 ### 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 precisely, such as one word forward or to the end of a line\. Those keys are called**motions**, and they are what 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 \(3jmoves down three\), and if a key seems to do nothing it's usually waiting for a second key, likefthen 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 hjklMove left, down, up, right0^$Line start, first shop, line endw/b/eHop forward / back / to block endWBESame, but over punctuation toogg/GJump to the top / bottom rowfx/FxFly right / left onto letter xtx/TxPull up before / after letter x;/,Repeat the last f/t hop, fwd / back3jA count before a key repeats it ### Editing xDelete the character under the cursorr*c*Replace that character with*c*dd/yyCut / copy the whole linedwded$Delete to a motion \(pairdwith a move\)p/PPaste after / before the cursorxpSwap two neighboursdi"di\(Delete inside quotes/brackets \(daincludes them\)\.Repeat your last changeu/Ctrl\+rUndo / redo ### Insert mode i/aType before / after the cursorI/AType at the line start / endo/OOpen a line below / abovecc/CChange the line / to end of linesDelete a char and start typingciwci"Change a word or the text inside quotesEscBack to normal mode ### Visual mode vHighlight a range as you moveVHighlight whole linesCtrl\+vHighlight a column \(block\)d/y/cDelete / copy / change the highlightr*c*Replace every highlighted char with*c*oJump to the other end ### Search /*text*EnterSearch and jump to the next matchn/NNext / previous match\*Search the word under the cursor ### Registers & macros "*a*yyCopy the line into bin a \(any a\-z\)"*a*pPaste from bin aq*a*…qRecord keys into bin a, then stop@*a*Replay bin a \(count works:3@*a*\)@@Replay the last routine

Similar Articles

Show HN: I built a little browser game to practice Vim commands

Hacker News Top

Show HN: hjkl — a free browser game that teaches Vim commands through guided, prompted, and independent editing exercises in a real Vim editor. It covers motions, text objects, marks, registers, search, and file jumps with no account required.

Show HN: I wrote an entire Vim manual over 4 years

Hacker News Top

Author Matthieu Cneude presents 'Learning to Play Vim', a Vim manual written over four years with a step-by-step approach and 170 exercises to help developers become more productive by keeping their hands on the keyboard.

Lisp in Vim (2019)

Hacker News Top

A detailed comparison of Slimv and Vlime, two Vim plugins for interactive Lisp programming, covering setup, features, and recommendations.

Vim's UserGettingBored Autocmd

Hacker News Top

Vim has a joke autocmd called UserGettingBored that doesn't do anything, first added in 2000 as a humorous documentation entry. An unofficial plugin inspired by it now displays an image when the same key is pressed 42 times.