Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Simple, Practical, and Common - 26754 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 30
  • Number of attempts: 2
Hidden Message - 54 entries

Find the hidden message and replace all other characters with spaces.

  • Best score: 33
  • Best player score: 92
  • Number of attempts: 1
Ninjas Leaderboard - 84 entries

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

  • Best score: 25
  • Best player score: 31
  • Number of attempts: 5
comment and uncomment code inline - 862 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 18
  • Number of attempts: 2
Split line with dots - 1916 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 24
  • Number of attempts: 2
I forgot quotes - 12699 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Number of attempts: 4
Untangle my tail, please! - 44 entries

You know, this words were playing to chase their tails and Oops! What happened? Now we have a complete mess, their tails are totally tangled, can you please help them to untangle their tails?

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 1
Alex Koch 👨‍🍳👨‍💻🌹
Twitter:

Board member @pavesnonprofit. #chef engineer at a cable company. Activist. Feminist. Possibly sarcastic sometimes. "⸮" is the sarcasm mark. Sub Vet. He/him

entered into 7 challenges

contributed 0 challenges