News for hackers. Stuff that matters.
Re:Show HN: I built a little browser game to practice Vim co... by jaydonb on Tuesday November 03, 2026 @12:21AM (#50348400)
This is great, definitely going to be using this to practice!

One note: It might be useful to keep the "undo" prompt when the user messes up after the first two prompted lessons for a clear recovery path.

Thank you for making this!

Re:Show HN: I built a little browser game to practice Vim co... by dh1011 on Tuesday November 03, 2026 @12:58AM (#50348596)
Thanks for the suggestion! I will add that in.
Re:Show HN: I built a little browser game to practice Vim co... by senectus1 on Tuesday November 03, 2026 @12:26AM (#50348433)
oh man this is great. thank you!
Re:Show HN: I built a little browser game to practice Vim co... by dh1011 on Tuesday November 03, 2026 @12:49AM (#50348547)
Thanks for trying it out!
Re:Show HN: I built a little browser game to practice Vim co... by anil_gr on Tuesday November 03, 2026 @12:31AM (#50348460)
Cool, a small ux issue I noticed is that the grid cells are not clickable as a whole.
Re:Show HN: I built a little browser game to practice Vim co... by dh1011 on Tuesday November 03, 2026 @12:54AM (#50348571)
Agreed, it would be nicer if the whole cell were clickable. I’ll work on this. I also recommend to use hjkl to navigate and Space to select. I think that’s more fun :).
Re:Show HN: I built a little browser game to practice Vim co... by usrme on Tuesday November 03, 2026 @12:40AM (#50348505)
I did the first challenge or exercise, but I was honestly a little surprised that Vim motions aren't able to be used to choose the next exercise(s) in the sidebar that becomes visible. That could potentially be something that the player unlocks later on as well.
Re:Show HN: I built a little browser game to practice Vim co... by dh1011 on Tuesday November 03, 2026 @01:02AM (#50348610)
Good idea! I will work on this.
Re:Show HN: I built a little browser game to practice Vim co... by glibg10b on Tuesday November 03, 2026 @01:23AM (#50348730)
For all of the ciw examples, ce is easier since the cursor is at the first letter of the word.

Where dw works, this game teaches vlllld instead, which is a bad habit to teach.

Ctrl+A increments the first number after the cursor, which is easier than, say, f6r7 in cases where they do the same thing. Similarly, Ctrl+X decrements.

t:t: is weird when fY is much easier.

The Vim simulator has a minor difference compared to real Vim:

    0
    0
Start on line one and do CTRL-V then j then CTRL-A. Real Vim would increment both. The simulator only increments the one under the cursor.
Re:Show HN: I built a little browser game to practice Vim co... by sponno on Tuesday November 03, 2026 @01:45AM (#50348840)
Very annoyed I cannot operate the website with the keyboard, have to do the practices then use my mouse.
Re:Show HN: I built a little browser game to practice Vim co... by alabhyajindal on Tuesday November 03, 2026 @02:03AM (#50348951)
very cool! one feedback - when i selected all skills the game started with all the options of "fix a typo" first - i would like a version where all the challenges are jumbled up.

also there is an opportunity to turn this into something like vim.golf but in the browser

Re:Show HN: I built a little browser game to practice Vim co... by parasti on Tuesday November 03, 2026 @02:42AM (#50349196)
This got a laugh out of me. I guess I practiced vim commands in the most boring way - by using vim.
Re:Show HN: I built a little browser game to practice Vim co... by syngrog66 on Tuesday November 03, 2026 @02:51AM (#50349248)
vim use is whats reliably helped me to remember vim commands. a bonus is I can use the same tactic for all other software and in many other domains where I'd like to keep related skills fresh in mind, at figurative fingertips
Re:Show HN: I built a little browser game to practice Vim co... by etuil on Tuesday November 03, 2026 @02:59AM (#50349293)
the marker "ma" exercises are a bit confusing since you do make a marker but in most cases you don't have to go back to make a change to that marker
Re:Show HN: I built a little browser game to practice Vim co... by autuni on Tuesday November 03, 2026 @03:24AM (#50349462)
I have considered getting into Vim a couple of times because it always seemed like the thing to do, but never did.

It does not make sense to me that I should use an editor I need to study and practice for. It can't possibly that much more efficient, especially given that usually speed is not the limiting factor for what I do.

Maybe one day I will be tempted to find out why it's supposedly worth it again.

Re:Show HN: I built a little browser game to practice Vim co... by glibg10b on Tuesday November 03, 2026 @03:30AM (#50349494)
For me, it's about comfort. No need to bounce my right hand between the home row, the arrow keys and the mouse. No need to stretch my left pinky to Ctrl and Shift for every shortcut. Everything is near the home row in Vim, by design.
Re:Show HN: I built a little browser game to practice Vim co... by zzril on Tuesday November 03, 2026 @04:00AM (#50349678)
Comfort and reducing context switching overhead. Targeting a specific screen area with the mouse just takes way too much attention.
Re:Show HN: I built a little browser game to practice Vim co... by xeyownt on Tuesday November 03, 2026 @06:26AM (#50350644)
And I'd add language. With vim, you can hardwire your brain to your keyboard / editor, and use some sort of language to almost unconsciously express what you want to do. Like edit a typo, move a work, move a paragraph, capitalize this, etc.

Without vim, your language is limited to very basic actions that you need to repeat ad nauseam.

Re:Show HN: I built a little browser game to practice Vim co... by ro-ka on Tuesday November 03, 2026 @03:42AM (#50349565)
I felt the same and never got into vim. What clicked for me however is helix and I love it. Brings everything out of the box and the mental model fits me better (select, then action).

https://helix-editor.com/

Re:Show HN: I built a little browser game to practice Vim co... by wiseowise on Tuesday November 03, 2026 @03:48AM (#50349598)
> It can't possibly that much more efficient,

It is. And I’m not even an advanced Vim user.

> especially given that usually speed is not the limiting factor for what I do.

For me it’s not so much about speed as about comfort. Jumping into VISUAL and selecting something in a block, yanking the line, jumping pages, editors, searching within the file, filtering, sorting. And the most important part is that because it is so old and widespread there’s pretty much vim mode for any editor so I can use the same shortcuts between vim, VScode, IntelliJ, etc.

Re:Show HN: I built a little browser game to practice Vim co... by bbeonx on Tuesday November 03, 2026 @03:54AM (#50349634)
(a) vim is super powerful (b) vim is way faster to edit, navigate, etc (c) it really doesn't matter that much

do the thing you enjoy :)

Re:Show HN: I built a little browser game to practice Vim co... by TonyStr on Tuesday November 03, 2026 @04:03AM (#50349692)
Does it make sense that you should use a keyboard you need to study and practice for? Because I'm willing to bet you didn't instantly learn touch typing the first time you laid eyes on a keyboard. I would also bet that you didn't know about ctrl c, ctrl v, ctrl x, multiple cursors, tab, and so many other things that you now take for granted in code editors and elsewhere. Vim is just like that - a little foreign in the start, but after using it for a while it becomes second nature. You can learn just the basics and be productive in a couple of days, then you have the rest of your life to learn the more advanced features like terminal mode or macros and so on. Though it seems most people (me included) get really excited about learning vim once we get into it, and start sprinting through a bunch of features. That can make it seem a bit overwhelming.
Re:Show HN: I built a little browser game to practice Vim co... by ThrustVectoring on Tuesday November 03, 2026 @04:35AM (#50349873)
The real strength of vim (and emacs, though I haven't learned emacs to know this firsthand) is the expressivity of it rather than the raw speed. When you can express an edit as a sequence of key presses, you can record and replay that to easily and make the "same edit" in many places.

The funniest time I did this was with a interview screening question which had a hundred-deep chain of links with the URL for the next link embedded in some JSON with some additional formatting required to get a working link. Vim let me copy a line of text that's a curl command, shell out to replace it with the ~6 lines of JSON response, edit that as a string down to a curl command to the next URL, and wrap that entire process up as a macro to run a hundred times.

Re:Show HN: I built a little browser game to practice Vim co... by tsegers on Tuesday November 03, 2026 @04:51AM (#50349987)
I still vividly remember a peer watching me carefully record a vim macro, thinking I was just editing. Right as he said "Why are you so slow?!?", I ran `100@q` to apply the edit to the whole file. Just "oh." after that.
Re:Show HN: I built a little browser game to practice Vim co... by skydhash on Tuesday November 03, 2026 @07:02AM (#50350932)
As a vim and emacs user, macros are really nice. But the true superpower, IMO, is that code is fairly structural in the file and outside of it, and both allow me to quickly navigate that structure. Vim is more powerful on the edit side, but emacs has more convenient utilities.
Re:Show HN: I built a little browser game to practice Vim co... by chrysoprace on Tuesday November 03, 2026 @06:13AM (#50350539)
Well consider this, if you end up liking Vim you'll almost certainly want to have Vim keybindings in everything you use. :)

I learned Vim because I didn't like using Nano to edit server configs, and ended up sticking with it because I wanted to ditch my mouse in my workflow for fear of long-term RSI development.

Vimtutor is a built-in command in Vim and Neovim, and I personally wish I started with it since it's super helpful. You only have to learn as much as you need to, to become productive and then you can progressively get more advanced with macros and piping the file contents to a command line tool like jq.

Re:Show HN: I built a little browser game to practice Vim co... by funcDropShadow on Tuesday November 03, 2026 @08:25AM (#50351705)
The web page "Why, oh WHY, do those #?@! nutheads use vi?" [1] convinced me almost 20 years ago to give it a try. Already then, it looked like an outdated mode of editing text, but I was wrong.

[1]: https://web.archive.org/web/20180318023156/https://www.viemu...

Re:Show HN: I built a little browser game to practice Vim co... by phkahler on Tuesday November 03, 2026 @09:12AM (#50352230)
I had the same thoughts and then one day I was force to use it when git landed me in vim. So then I did a bit of research on how to learn it, and that's when I discovered that I already had vimtutor. Just run that and use it daily for while to the basics. Then you can get a feel for how it's efficient.

I stopped after learning enough to get by but can see how having all of it learned and automatic would be pretty efficient.

Re:Show HN: I built a little browser game to practice Vim co... by internet_points on Tuesday November 03, 2026 @03:31AM (#50349495)
The best game to learn hjkl movement will always be nethack :)
Re:Show HN: I built a little browser game to practice Vim co... by francescobonomi on Tuesday November 03, 2026 @03:35AM (#50349529)
This unlocked the memory of when I first used vimtutor and discovered the beautiful world of vim
Re:Show HN: I built a little browser game to practice Vim co... by zzril on Tuesday November 03, 2026 @04:10AM (#50349727)
I was somewhat irritated that the exercises allow you to stay in insert mode at the end. I think it might do better at teaching the concept of an "edit" as a single, repeatable action by requiring you to go back to normal mode.
Re:Show HN: I built a little browser game to practice Vim co... by TheBuc on Tuesday November 03, 2026 @05:26AM (#50350192)
Cool, this could be a big help for those just starting out!
Re:Show HN: I built a little browser game to practice Vim co... by atakmim on Tuesday November 03, 2026 @06:32AM (#50350686)
I tried and finally I will learn and understand Vim better playing a game :) Thanks!
Re:Show HN: I built a little browser game to practice Vim co... by test_user369 on Tuesday November 03, 2026 @06:41AM (#50350765)
I learned the basics a couple of years ago and although Claude does most of my work now, I'll try it to learn some new tricks. Thanks for posting!
Re:Show HN: I built a little browser game to practice Vim co... by WhiteRice on Tuesday November 03, 2026 @07:23AM (#50351145)
Claude has a vim input setting!
Re:Show HN: I built a little browser game to practice Vim co... by gosen on Tuesday November 03, 2026 @07:49AM (#50351387)
cool! but I have a problem, how can I exit this game?
Re:Show HN: I built a little browser game to practice Vim co... by assimpleaspossi on Tuesday November 03, 2026 @08:07AM (#50351528)
I actually like this and I don't like anything.
Re:Show HN: I built a little browser game to practice Vim co... by nickandbro on Tuesday November 03, 2026 @09:12AM (#50352233)
This is very cool, definitely makes you more familiarly with the movement shortcuts! I created something similar at: https://vimgolf.ai