Free Online Vim Playground
Practise Vim in your browser. Try modes, motions, operators, search and replace in a real editor, with a cheat sheet beside it. No install, no setup.
practice.txt
This is a Vim emulator for practice: the core keys, modes and the search and replace commands. Plugins and .vimrc are not available.
How to use
Click in the editor. You start in Normal mode, where keys are commands rather than text.
Press i to start typing, and Esc to return to Normal mode. The mode shows under the editor.
Work through the six steps in the starter text, then use the cheat sheet beside the editor when you forget a key.
Press v or V to select, then an operator such as d or y. Type / to search and :%s/old/new/g to replace.
Copy the text, download it as practice.txt or clear the editor with the icons above it.
Press Reset exercise to bring the starter text back, or use A- and A+ to resize the text.
Why use this tool
Vim modes and keys
Normal, insert, visual and replace modes, with motions, operators, text objects, registers, marks and macros.
Cheat sheet beside the editor
The keys people reach for first, grouped by task, so you can look one up without leaving the page.
Starter exercise
Six short steps that teach the basics in a few minutes, and a button to bring them back.
Search and replace
Search with / and replace with :%s, using the same syntax as Vim.
Private by design
Your text is saved in this browser, so it is still there on your next visit.
Comfortable editor
Resize the text, switch line wrapping on or off, or use the icons to copy or download your text.
About this tool
Practise Vim in your browser, with nothing to install and no risk to your own setup. This online Vim playground gives you a real editor with Vim's modes and keys, a short exercise to start with, and a cheat sheet beside it. Learn to move with h, j, k, l and w, edit with dd, yy, p and ciw, select with v, and search and replace with / and :%s. It suits beginners learning the keys, and anyone who wants to rebuild muscle memory before working on a server. It is a Vim emulator, so plugins, .vimrc and most Ex commands are not available.
Frequently asked questions
No. It is a Vim emulator built on a code editor, so the core keys, modes and commands work as in Vim, but plugins, a .vimrc file and most Ex commands do not. It is meant for learning and practice.
In this playground there is nothing to exit, because it is a page rather than a terminal. In real Vim, press Esc, then type :q and Enter to quit, or :wq to save and quit.
The commonly used ones: motions such as w, b, 0, $, gg and G, operators such as d, y and c, text objects such as iw, undo and redo, the dot command, visual mode, registers, marks, macros, search with / and ?, and substitution with :s.
Yes, on this device. The text is kept in your browser so it is still there when you come back. Use the clear icon to empty it, or Reset exercise to bring the starter text back.
The editor opens, but Vim relies on a keyboard with an Esc key, so it works best on a computer.
Only to load the page. The editor runs in your browser.
Yes. Untick Wrap long lines under the editor and it scrolls sideways instead. Your choice is remembered on this device.