August 25th, 2024

Vim Racer

Vim Racer is an online game that enhances Vim navigation skills through timed challenges, featuring multiple levels, a competitive leaderboard, and community feedback, with potential future updates for new variations.

Read original articleLink Icon
FunFrustrationCuriosity
Vim Racer

Vim Racer is an online game designed to enhance users' skills in navigating the Vim text editor. Players aim to reach various targets as quickly as possible using Vim motion commands. The game features multiple race levels, each with a different number of targets, such as "Burn Detector" and "Apollo 11 Bailout." Players can reset the game to start a new race, and their performance is tracked on a leaderboard. The game encourages community feedback and offers tips for efficient navigation. It also includes a FAQ section addressing common questions, such as the rationale behind relative line numbers and leaderboard regulations. The game is intended not only for entertainment but also as a learning tool for mastering Vim motions, with leaderboard entries showcasing the key sequences used by top players. Future updates may introduce new game types and variations, but current development resources are limited.

- Vim Racer helps users improve their Vim navigation skills through timed challenges.

- The game features multiple levels with varying target counts and a competitive leaderboard.

- Players can learn from others by analyzing key sequences used in high scores.

- Community feedback is encouraged to enhance the game's features and usability.

- Future updates may expand the game with new types and variations.

AI: What people are saying
The comments on the Vim Racer article reflect a mix of enthusiasm and concerns regarding the game.
  • Players enjoy the competitive aspect and find the game fun and engaging.
  • There are concerns about the leaderboard's integrity, with suspicions of cheating and suggestions for improvement.
  • Some users report technical issues and bugs affecting gameplay.
  • Feedback includes requests for additional features, such as keypress count tracking and optimal navigation guidance.
  • Players express a desire for more educational resources and comparisons to other Vim-related games.
Link Icon 26 comments
By @s1mplicissimus - 6 months
Hi, I just engraved myself in the highscore for the jpeg level with 17 seconds. What a lovely competitive game! I had great fun just "shooting from the gut" (no minmaxing, just did the movements i would do "instinctively" to get to the requested position) I particularly cherish the "show me the moves of leaderboard games" feature which hopefully can serve as an educational resource.

In regards to how the leaderboard is constructed, i noticed some of the top players are at 1 second, which doesn't seem humanly possible to me (that would amount to < 0.05 seconds per move). my assumption is they are using scripted input, which with this interface will be hard to prevent. i read you are still figuring out how to regulate everything, so here's an idea: if you rank the leaderboard by number of keystrokes (might consider special handling for shift etc.) instead of time elapsed, you will get the most efficient leaders instead of the fastest ones - that way scripting wouldn't help cheaters anymore.

All the best moving forward!

By @mFixman - 6 months
This is fantastic!

I wish there was a mode where you minimise the keypresses rather than the speed; that way the best solution is Vim golfing rather than fast hjkl'ing.

Quick bug report: the character '`' appears as "Unsupported" in the leaderboard. This is very visible when following Duff's device using marks.

By @rossant - 6 months
It's a game you can't stop once you start.
By @kingkongjaffa - 6 months
This is super fun, do you know any other vim games like this? I've always wanted to vim (emacs evil mode user) but I'm not exactly fast.
By @Keyframe - 6 months
Something is broken on the site. Nothing happens no matter what I try. I've tried in chrome and firefox.
By @fdlaks - 6 months
This is really cool, I ran into a bug where I deleted a line that the program would have targeted in a future step which crashed it for me though
By @iamcreasy - 6 months
It is very useful to be able to see how other did it though leaderboard.
By @fillmore - 6 months
I'd like to play, but the line numbers are following the cursor. Seems like a bug, but am I missing something? I'm not an experienced vim user but I'm normally able to navigate fine (albeit slowly).

(Tried in Chrome and Firefox)

By @cryptonector - 6 months
This is fun! Keypress count, and a mode where rather than go faster you have to minimize the number of keypresses, would be fantastic additions.

The game description could clarify what the "target" is.

By @gloosx - 6 months
Terrible game, but it's good at one thing: showing that navigating Vim without Easymotion is racing on foot instead of a race car.
By @bArray - 6 months
Has the leader board be gamed by any chance [1]?

1st himom 0min 1.001s 490

2nd elmoFOOBAR 0min 1.002s 400

3rd VeryFastTyper 0min 1.003s 708

4th EmacsUser 0min 1.004s 717

5th ShawnT 0min 1.005s 720

6th benbp 0min 1.008s 714

7th hehe 0min 1.023s 604

8th anthony 0min 1.274s 565

9th chris 0min 1.327s 543

10th MasterWq 0min 1.333s 540

11th blake 0min 1.334s 540

12th jbp 0min 1.381s 521

13th test12345 0min 1.437s 20

14th jonmv 0min 1.476s 488

15th spektrokalter 0min 1.577s 457

[1] https://vim-racer.com/#leaderboardAnchor

By @ddlutz - 6 months
Maybe i'm missing it, but I think this would be much more useful if it showed what the optimal way to navigate per-target was.
By @javier_e06 - 6 months
sounds interesting but I don't understand what:"12 Targets (Burn Detector)" Means. What or where are the targets? I got it! Navigate to the yellow flashing square! Is fun but the numbers are relative so I can't type: :4 To go to line 4 which is the intuitive way.
By @notemaker - 6 months
I've had a similar idea on my backburner for two years, as a fun project to dabble in Elixir, but this is just so much more _fun_ than my version which looks like an admin page that just happens to have a Vim canvas on it.

Well done!

By @knighthack - 6 months
This was really fun! I could imagine myself really getting into this, as someone who enjoys Vim motions. It would also be great to see automated replays, based on the inputs in the leaderboard.
By @helix278 - 6 months
Very nice. I would like this for Helix, and allow bringing your own config!
By @gtm1260 - 6 months
I feel like I found a bug but I'm not sure - when I do <line_number> then Shift +G I don't think the behavior is correct.
By @_jcrossley - 6 months
Just hit top 30 in all the standard races - thanks so much, this was such a delightful way to practice my new Glove80 :)
By @ccvannorman - 6 months
:4 does not go to line 4. Or at least, the line numbers are not correct. No thanks, I'll pass.
By @lizardking - 6 months
This is a lot more fun than I would have expected. Nicely done!
By @daphodile - 6 months
I just went through all the "maps," very insightful!
By @lelanthran - 6 months
Doing `/searchterm/e` doesn't work.

Quite nice otherwise.

By @latexr - 6 months
My first solution: wjkljl4j%%%6k$%%G
By @Woshiwuja - 6 months
Certified vim racist
By @rmurray2050 - 6 months
really fun to play! very creative game! thank you :)
By @rpigab - 6 months
This game made me realize that even if I think it's sweet to code with keyboard only, using the mouse is generally faster, especially in this game where there's no back and forth to type something.

However, using the mouse to navigate is flaky here, probably because of how the terminal and decorations are rendered, it lands a character to the right or left when clicking the target.