Show HN: I built a little browser game to practice Vim commands

dh1011 72 points 57 comments November 03, 2026
hjkl.duy.run · View on Hacker News

I made hjkl to help myself remember Vim commands. It’s a little browser game you can play when you want to unwind and get a bit of Vim practice in. There are still a lot of commands I want to add, but I hope someone finds it useful in the meantime :)

Discussion Highlights (20 comments)

jaydonb

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!

senectus1

oh man this is great. thank you!

anil_gr

Cool, a small ux issue I noticed is that the grid cells are not clickable as a whole.

usrme

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.

glibg10b

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.

sponno

Very annoyed I cannot operate the website with the keyboard, have to do the practices then use my mouse.

alabhyajindal

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

parasti

This got a laugh out of me. I guess I practiced vim commands in the most boring way - by using vim.

syngrog66

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

etuil

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

autuni

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.

internet_points

The best game to learn hjkl movement will always be nethack :)

francescobonomi

This unlocked the memory of when I first used vimtutor and discovered the beautiful world of vim, that was also a great resource

zzril

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.

TheBuc

Cool, this could be a big help for those just starting out!

atakmim

I tried and finally I will learn and understand Vim better playing a game :) Thanks!

test_user369

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!

gosen

cool! but I have a problem, how can I exit this game?

assimpleaspossi

I actually like this and I don't like anything.

nickandbro

This is very cool, definitely makes you more familiarly with the movement shortcuts! I created something similar at: https://vimgolf.ai

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed