r/vim • u/adi022000 • 1d ago
Random I built a Vim trainer that runs in the browser, and its simulator is diffed against real Vim 9. Try to break it
Disclosure: I built this, it's my own site. I asked the mods before posting.
I work as a DevOps/SRE. Recently I watched a teammate get stuck in Vim on a prod box over ssh during an incident, trying to remember how to quit without saving while PagerDuty kept going. We do internal training at work, and plenty of engineers who run big k8s clusters still trip over the basics. So I built something to practise on: https://cert-it.dev/vim/
Each lesson has short animated examples where the keys are shown step by step, then challenges in a simulated shell + Vim. The check looks at the file and cursor you end up with, not at which keys you pressed, so any way that gets there counts. There's a keystroke par if you like golfing, and a 2-minute speed test (six edits, easy to hard): https://cert-it.dev/vim/speed-test/
The part I'd like this sub to poke at is the simulator. It's written from scratch in JavaScript, and I didn't want to just trust it:
- the reference solution of every challenge that edits a file is replayed in real Vim 9 and compared
- nearly 1,300 more key sequences are diffed against Vim: buffer, cursor, registers, files
- known gaps: no plugins, no folding, no `:help`, no `\=` in `:s`
The first 18 lessons (everyday editing) need no account and will always be free. The rest goes up to buffers, windows, tabs, the argument list, `:g`, filters and macros, because it follows the Linux Foundation's SC100 Vim exam. That part is free too; it needs a free account so your progress syncs.
If you find a key sequence where it does something real Vim wouldn't, please tell me. It goes straight into the test suite.
About the code: a large part of it was written with an AI assistant (Claude). That's exactly why the diffing against real Vim matters to me.
And if it turns out useful, I'd love it if you passed it on to someone who's still fighting their way out of Vim. That would honestly make my day.






