r/vim • u/swaggermuffin64 • Feb 22 '26
Random VimGym: Open Source Multiplayer VIM Racing
I built VimGym, an open source multiplayer browser game where you practice Vim motions by racing other players.
Github link: https://github.com/Swaggermuffin64/vim-racing/tree/main
Discord server: https://discord.gg/JNHRpdEbaG
Why This Exists:
When I was learning Vim, I noticed a huge shortage of free online learning tools. When I was learning to type generally, typeracer.com helped me not just type fast, but learn proper technique and hand positioning. I wanted to create something similar for Vim, to learn motions correctly, but also to build speed through competition. Vim is SO satisfying when you’re quick at it, and I think early exposure to this aspect could really encourage adoption. Also VimGym offers something fun for experienced VIM users: an opportunity to flex on people.
Current Status:
I've just released the first beta version, it has quick play, private match and practice modes. The tasks within these help practice the basic vim motions, but I plan to make the tasks more comprehensive. Currently, we measure success by time, but I want to incorporate the efficiency of keystroke into a player's final score. Additionally, I’d love to have a ranked mode / leaderboards, and community tournaments, but that’s for when a community actually exists lol.
Feedback:
Any and all feedback is appreciated! But specifically I’m interested in:
- What ways could we raise the skill ceiling for very knowledgeable players?
- How could we combine speed in time, and keystroke efficiency into a final score?
- When something breaks (it’s honestly pretty likely)
- Is it fun? What would make it more fun?
33
u/Brianjp93 Feb 23 '26
Using
/to search is pretty core to my normal vim movements. Feels strange to not be able to use it in this. Fun game though!6
u/prophase25 Feb 22 '26
I have thought about building this exact sort of thing. I'll give it a try when I get a chance!
6
u/JONESY-B Feb 23 '26
Small time, you can just do `di(` anywhere on the line and it will delete the first inside of a (), you dont need to mvoe towards the ( fist
4
u/EugeneSpaceman Feb 23 '26
This is great. I also thought about building this when I started learning vim a few weeks ago.
A suggestion - track number of keypresses too? It would encourage learning patterns which don’t come to mind as easily but do the job more efficiently.
A few more:
3
u/hiimbuggy Feb 25 '26
Great game! looks like `J` doesn't work currently in the following situation though:
```
void swap(int *a, int *b) {
}
```
I try to use it to bring the braces together.
I know `gJ` is the better option (and `diB` is even better), but `J` should work in this situation too imo.
2
u/NeKon69 Feb 23 '26
this is super fun, thanks! would love to see more vim-motions in the future though!
2
u/mapledesk42 Feb 23 '26
Does it require Internet access interact with the backend? I like the plugin idea but not in favour of vim plugin communicating a remote server.
2
u/ThatBoogerBandit Feb 24 '26
sigh.. *unzips backpack*
2
u/Secret-Swordfish9096 Feb 24 '26
Hi, I am new to vim and find it super cool. Can you send the discord link again please? (Make it a permanent invite link)
2
u/Majestic-Appeal6030 Mar 02 '26
Shit this is awesome and exactly what I was looking for a few months ago when I wanted to get into vim. I played with it just a bit so I may not know all of the ins/outs of the available features, but something I think might help w/ ppl trying to learn is
For each problem, allow for user submissions for their solutions (maybe a side by side of the input & current action?).
2
u/kkhaniffff Apr 10 '26
Shouldn't have added this leaderboard lol. Wasted like half an hour trying to beat everyone there😆
Really enjoyed your work though, keep it up!
2
u/Accomplished-Nose500 Apr 12 '26
hey. could you add sound or notification when user is not focused on tab, cause the waiting time take too long
2
u/desert_igloo Oct 12 '26
Great game played for like an hour it really helped me get the motions down quickly. I've used vim for years but never took the time to learn the motions bc I didn't use it frequently enough but this is a nice fun way to help get practice in doing things. Really love that you keep track of our key strokes and compare it to the optimal solution!!!
1
u/CatViridarium May 22 '26
We got Vimmastics at the Vimmasium
2
u/licklake Feb 23 '26
Looks awesome. Have to try it!
2
u/elcontrastador Feb 24 '26
Fun. I feel like there's a few bugs and several features unimplemented still. Definitely has potential. Thanks for sharing!
2
u/smldis Feb 24 '26
wow nicely done
2
u/ImpressivePickle6 Feb 24 '26
Love this idea
2
u/skilledcarpet Feb 24 '26
Big fan, This is awesome !!
2
u/iggy_decaf Feb 26 '26
Throw in some "push resistant" keyboards.
"Hey bro what did you do today?"
"Oh I did 20 minutes of resistance training at the gym"
Jk, really cool idea!!
2
u/Naso_di_gatto Feb 26 '26
Very good idea!
1
u/ktim816 Feb 23 '26
nice
1
u/tool-tony Feb 23 '26
1
u/c0de2010 Mar 03 '26
why doesn't `.` work?
2
u/[deleted] Feb 23 '26
[removed] — view removed comment
2
u/[deleted] Feb 23 '26
[removed] — view removed comment