Learn Vim by playing a game

Vimrealm is a pixel-art fantasy RPG for developers who write code every day but have never learned Vim. You learn Vim the way Vim is used: by typing real Vim commands. There are no multiple-choice quizzes and no flashcards.

It runs in your browser with nothing to install. The first five chapters, all about moving around, are free.

Start the free chapters

How the Vim game works

Every level is a text buffer turned into an island, seen from an isometric angle. Each character is a tile: letters are grey stone, digits are blue crystal, punctuation is golden sandstone and spaces are grass. A small wizard stands on the tile under the cursor.

When you press w, the wizard leaps to the next word. When you press dd, a whole row of tiles drops away. Below the island, the Scroll of Text shows the same buffer flat, the way your editor would, with relative line numbers, so what you see on the island maps straight onto real Vim.

The Vim curriculum

The Sage Modalus guides you through 13 chapters and 34 quests. Each chapter teaches a handful of commands and builds on the ones before it. Want a quick reference while you play? Keep the Vim cheat sheet open in another tab, or read the guides to text objects and the dot command.

#ChapterWhat you learn
1Meadow of Motionh j k l, the sticky column, counts
2Forest of Wordsw b e ge, W B E gE
3Cliffs of Line's End0 ^ $ g_
4Seeker's Cavef F t T ; ,
5Mountain of Linesgg G {n}G :{n}, { }, %
6The Breaking Artsx X, dd, r, ~, J gJ, undo u and redo Ctrl-r
7Scribe's TowerInsert mode: i a I A o O and Esc, Replace mode R
8Operator Sanctumd{motion} D, c{motion} C cc s S, case operators gu gU g~
9Temple of ObjectsText objects: iw aw iW aW, i" a" i' a' i( a( i{ a{ i[ a[
10Hall of EchoesYank and put: y yy Y p P gp gP, and the dot command .
11Oracle's ArchiveSearch: / ? n N * #
12Chamber of LightVisual mode: v V with operators, U
13Dragon's LairBoss fight against the Arrow-Key Dragon, using everything you have learned
Chapters 1–5 (13 quests) are free. Chapters 6–13 are part of the full version.

The Trials: practice after the story

Once the dragon falls, 60 Trials in six chapters keep the commands in your fingers. Each one drills spells you already know with a twist: some commands are forbidden, the keystrokes are limited, one failed command ends a flawless run, or a sand-glass is running.

Trials of Motion · Trials of the Seeker · Trials of the Scribe · Trials of Objects · Trials of Echoes · The Gauntlet

Free and full version

FreeFull version
QuestsChapters 1–5: every movement command (13 quests)All 13 chapters (34 quests), including the dragon, plus 60 Trials
ProgressSaved in this browserSaved in this browser and the cloud, synced across devices
PriceFree$7.99, one payment, tax included. No subscription.

What you need

The emulator covers the parts of Vim the course teaches, not all of Vim. It has no macros, marks, named registers, ex ranges or :s, and search matches literal text rather than regular expressions.

Frequently asked questions

Is Vimrealm free?

Chapters 1–5, which teach every movement command, are free and need no account. The full version, chapters 6–13 plus 60 Trials and cloud saves, is $7.99 as one payment with no subscription.

Do I need to know Vim already?

No. The first quest starts with h, j, k and l. If you already know some Vim, the quest map has a button to unlock every quest.

Is it real Vim?

The game uses an emulator of the parts of Vim it teaches, so the commands are the real ones. It has no macros, marks, named registers, ex ranges or :s, and search matches literal text rather than regular expressions.

Does it work on a phone or tablet?

No. You type Vim commands, so Vimrealm needs a physical keyboard. These reading pages work on any device.

Your quest begins in the Meadow of Motion.

Play Vimrealm free