Practice real Vim in a browser terminal. From getting out (:q, :wq) to modes, dd, yy and u, learn by doing with nothing to install and no account.
Vim is famous for a single question: how do I get out of it? This page is a free, hands-on Vim tutorial where you practise real Vim keys in a browser terminal, starting with that very wall. Nothing to install, no account to create.
First, learn the way out
When you are stuck, the steps are always the same.
- Press Esc (back to normal mode)
- Type
:q! to throw the changes away, or :wq to save and close (ZZ does the same)
- Press Enter
When people say :q does not work, the missing piece is almost always Esc. In insert mode, :q is not a command: it is three characters typed into your file. Esc first.
Modes are the whole idea
Vim has an insert mode, where the keys you press become text, and a normal mode, where the keys are commands. i goes in, Esc comes back. Everything else in Vim is built on that one movement.
It feels strange at first, because most editors always type. Once it clicks, though, dd deletes a line, yy copies it and p puts it back, all without your hands leaving the home row.
Two lessons, as far as you need
- Vim Basics: open a file, move with
hjkl, save, and quit
- Vim Editing: edit with
dd / yy / p, undo and redo with u and Ctrl-r, search with /, substitute with :s
Neither lesson is a reading exercise: each mission is checked against what actually happened to the file. The rest of the lessons are on the tutorials list.
The real keys, working the way they should
The editor implements modal editing itself: word motions, registers, marks, the . repeat, and qa … @a macros all behave the way they do on a real machine. The muscle memory you build here transfers straight to the Vim on your server.
On a desktop, Free Play lets you type vim notes.md and get the same editor with no mission attached.
Safe to break
You are editing virtual files inside your browser tab. Save them, delete them, make a mess: reloading the page brings everything back. Practise quitting with :q! and undoing with u as many times as you like.