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

Hidden Message - 59 entries

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

  • Best score: 33
  • Best player score: 92
  • Number of attempts: 1
comment and uncomment code inline - 950 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 - 2049 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 24
  • Number of attempts: 2
Simple, Practical, and Common - 31997 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
I forgot quotes - 15243 entries


  • Best score: 10
  • Best player score: 17
  • Number of attempts: 4
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
Untangle my tail, please! - 45 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 👨‍🍳👨‍💻🌹

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