AccueilEnglishVim still scares people, so these five “games” drill the shortcuts until...

Vim still scares people, so these five “games” drill the shortcuts until they’re muscle memory

Vim has been wearing the same label for decades: brutally powerful, weirdly hostile to beginners, and beloved by the kind of people who think a mouse is a moral failing.

The problem isn’t that Vim lacks documentation. It’s that Vim demandsprocedural memory, the kind you build when your hands know what to do before your brain finishes the sentence. Knowing thatdddeletes a line is trivia. Hitting it instantly, in the right mode, without blowing up your file? That’s the whole game.

So developers and sysadmins have started doing something that sounds ridiculous until you try it: learning Vim through actual games. Not “gamified learning” corporate nonsense, real little drills that hammer the core moves until you stop thinking about them. The payoff is concrete: fewer mode mistakes, less backtracking, smoother movement through long files, and faster edits when you’re under pressure.

Why games work for Vim (and why tutorials don’t stick)

Vim’s learning curve isn’t a cliff because the commands are unknowable. It’s a cliff because Vim is modal. You’re constantly switching betweenNormal mode(where keys are commands) andInsert mode(where keys are text). New users spend their first week accidentally issuing commands when they meant to type, or typing “jkjk” into a file while wondering why nothing moves.

Games exploit repetition with consequences. You mess up, you feel it immediately, you try again. That’s how you build reflexes. Same reason typing tutors work, except here you’re not just typing fast. You’re learning a vocabulary of actions: move, delete, change, yank, paste, search.

Vim Adventures: the classic “learn h/j/k/l or die trying”

If you’ve heard of any Vim learning game, it’s probablyVim Adventures. The pitch is simple: it’s an adventure game where you can’t cheat. No arrow keys. No mouse. You move withh,j,k,l, Vim’s home-row movement keys.

That forced constraint is the whole point. Beginners don’t struggle because they can’t understand “left is h.” They struggle because their hands keep reaching for arrows out of habit. This game breaks that habit by making the “wrong” way impossible.

It also sneaks in the real lesson: Vim isn’t an editor where you live in Insert mode. Switching modes becomes a deliberate action, not an accident. And that’s where a lot of early pain comes from, staying in Insert mode and wasting time navigating, or staying in Normal mode and accidentally detonating commands into your file.

The downside: you can feel competent in the game and still freeze up in a real codebase. Editing an actual config file at 2 a.m. is different than dodging cartoon obstacles. But as a launch ramp, especially for people who bounce off Vim in the first hour, it does its job.

Vim Genius: quick-hit quizzes that build command recall

Vim Geniusgoes the opposite direction: no adventure, no maze, just short quizzes. You’re shown an action (“delete a word,” “move to end of line,” etc.) and you pick the Vim command that does it.

This builds the mental lookup table Vim demands: intention → command. And in Vim, that mapping is productivity. The editor behaves less like a menu system and more like a language with grammar.

Quiz format is also realistic for working adults: you can do a few minutes between meetings and actually retain something. It’s spaced repetition for commands you don’t use every day.

But don’t confuse recognition with fluency. Getting the answer right doesn’t mean your fingers can execute it smoothly. This is declarative memory (“I know the fact”), not muscle memory (“I can do it fast”). Use it as a supplement, not a substitute.

VimGolf: competitive challenges where fewer keystrokes wins

VimGolfis where the gloves come off. The site gives you a text-editing problem and scores you by how few keystrokes you use to solve it. Then it shows other people’s solutions, which is where the real learning happens.

This format forces you to stop editing like you’re pecking at a keyboard one character at a time. You start thinking in bigger operations, combining motions with actions, using counts, leaning on search, and discovering that in Vim a “command” can be a whole sentence.

The catch: optimizing for keystroke count can produce clever little stunts you’d never want in production. In real work, reliability and readability matter. Nobody wants a teammate who edits like they’re trying to win an arcade high score.

Still, VimGolf is a great way to break out of the “I only use 10 commands” rut. It’s an accelerant for people who already have the basics and want to move faster.

The Vim Snake Game: pure movement training, right in the terminal

The Vim Snake Gameis exactly what it sounds like: Snake, controlled with Vim movement keys. No deep editing concepts, just drillingh,j,k,luntil they feel as natural as arrow keys.

The sneaky advantage is context. A lot of these versions run in theterminal, which is where many people actually use Vim. Same keyboard, same posture, same environment. That helps the habit transfer.

Limitations are obvious: it won’t teach you deletes, changes, searches, or mode switching. But as a warm-up, especially if you only open Vim occasionally to edit a server config, it’s a quick way to get your hands back.

PacVim: Pac-Man-style mazes that push you past the basics

PacVimborrows Pac-Man’s maze-and-level structure, but it’s aimed at the next tier of movement: jumping by words withwandb, hitting end-of-word withe, and (in some versions/levels) mixing in edits that resemble real work.

Those word motions are where Vim starts feeling fast. Moving by characters is for punishment. Moving by words and text objects is how you fly through code.

PacVim also trains something beginners don’t realize they lack: planning. In Vim, speed often comes from deciding what you want to do before you start pressing keys, then executing it as one sequence. A maze forces you to read ahead, pick a route, and commit.

Sure, a maze isn’t a 600-line file with ugly indentation and a deadline. But it makes underused commands visible and repeatable. For someone stuck on the basics, learningw/b/ecan change their day-to-day pace immediately.

Games won’t make you a Vim wizard, but they’ll get you over the hump

No game replaces editing real files. If you want to actually “know Vim,” you have to use it: search, replace, refactor, fix mistakes, and get burned a few times.

But these games do something valuable: they lower the entry tax. They turn the most annoying phase, where every movement feels backwards, into repetition you can tolerate. And once the basics become reflex, Vim stops being a hazing ritual and starts being what its fans have claimed all along: fast.

FAQ

Do these games let you learn Vim without practicing on real files?
No. They speed up memorization and movement automation, but real proficiency comes from editing actual text and code, searching, changing, replacing, and recovering from mistakes.

Which one should a total beginner start with?
Start with movement-first training like Vim Adventures or a Snake clone usingh j k l. Add a quiz like Vim Genius to lock in the “action → command” mapping.

Is VimGolf useful for daily work or just showing off?
Both. It’s great for discovering expressive commands and reducing busywork. Just don’t worship the “fewest keystrokes” scoreboard, clean, dependable edits beat clever tricks.

Cyrielle
Cyrielle
Fan de Roblox, j'aime partager les astuces trouvées moi-même ou grâce à d'autres joueurs pour aider la communauté.

News

Coups de cœur