Learning to Play Vim - Comprehensive step-by-step Vim manual with 170 exercises
Show HN: I wrote an entire Vim manual over 4 years
Learning to Play Vim is a meticulously crafted manual by Matthieu Cneude, distilled from four years of writing and nearly a decade of Vim experience. It offers a step-by-step approach to mastering Vim and Neovim, with over 170 fun exercises to build muscle memory. The book focuses on real-life practical examples, customization, and keeping your hands on the keyboard to boost productivity and save cognitive energy. Whether you're new to Vim or a seasoned user, this guide promises to deepen your skills without overwhelming you. A print version is coming soon.
Vim is fun to play with! To me, it's like a game. The goal: to use as less keystrokes as possible.
- giladd
This is very cool and approachable, thank you. For anyone who suspects use of LLMs - just read some of the book. The language captured my attention in a manner no model is capable of.
- NoboruWataya
It's great to see a non-LLM manual like this, well done :)
Personally I use Helix whenever I need a decent terminal-based editor (though most of my coding is done in a JetBrains IDE). I found neovim's plugin ecosystem great in theory but fragile in practice - it seems whenever I install a load of plugins to get it working the way I want it and then come back a while later, half of them have broken. Helix is more limited in its capabilities but feels more stable.
However if there is a stable set of plugins out there (and I see you recommend some in the book) maybe it's worth taking another look.
- aktenlage
Nice work. Luckily I think I don't need it anymore after using vim for 20+ years.
As a motivation for new vim users, I'd like to mention that LLMs make it even more awesome to use such a malleable editor. When I think of some functionality I need, I'll just let Copilot write a small function and key binding and voila, it's done. It's pretty good at vimscript.
Latest example: a key (gK) to show the full git commit message of the current line. Or, when used with a number (e.g. 4gK) the message of the nth previous commit touching that line.
- hermitdev
Kudos! I've been using vim/IDE vim keybindings for close to 3 decades now, but I've never really taken the time to truly learn it. Despite my years of experience, I don't even know if I'd qualify myself as having intermediate knowledge if I'm being truly honest with myself.
I've been reading the sample and have already picked up a few things I was unaware of. I'll definitely be looking at picking up a copy of the full book.
- kjellsbells
If the physical book has lay-flat binding (can be opened at an arbitrary page and stays open there without any need for cracking the spine, weighing down the pages, etc) I'll gladly buy a physical copy. Does anyone know?
Lay flat makes a huge difference for technical books where you want to experiment as you go, trying the things in the book on your own machine. Sure you can ebook your way there, but it never feels the same, somehow.
- leowoo91
We are in such era it is hard to believe if author/site/book and comments in this post is legit at all. Maybe it ruined me at least.
- zahlman
> It took me more than 4 years and 2987 focused pomodoros (1244 hours) of work to finally get it done!
Do you actually find that pomodoro method helpful? The idea always seemed a bit suspect to me.
- _def
hm i would love some vim guidance but to me this seems quite pricey - maybe its worth it