There are still a lot of commands I want to add, but I hope someone finds it useful in the meantime :)
Show HN: I built a little browser game to practice Vim commands (hjkl.duy.run)
glibg10b 4 hours ago
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.autuni 2 hours ago
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.
glibg10b 2 hours ago
zzril 2 hours ago
ro-ka 2 hours ago
wiseowise 2 hours ago
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.
bbeonx 2 hours ago
do the thing you enjoy :)
TonyStr 2 hours ago
ThrustVectoring an hour ago
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.
tsegers an hour ago
TheBuc 22 minutes ago
zzril 2 hours ago
usrme 5 hours ago
dh1011 5 hours ago
parasti 3 hours ago
internet_points 2 hours ago
jaydonb 5 hours ago
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!
dh1011 5 hours ago
francescobonomi 2 hours ago
alabhyajindal 4 hours ago
also there is an opportunity to turn this into something like vim.golf but in the browser
etuil 3 hours ago
anil_gr 5 hours ago
dh1011 5 hours ago
sponno 4 hours ago
syngrog66 3 hours ago
senectus1 5 hours ago
dh1011 5 hours ago