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

Swap values - 4704 entries

Well, swap the values...

  • Best score: 6
  • Best player score: 21
  • Position: #1202 / 1294
  • Number of attempts: 1
One number per line - 18907 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #2922 / 3907
  • Number of attempts: 1
That hyphen - 2650 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #361 / 713
  • Number of attempts: 4
comment and uncomment code inline - 1183 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: 12
  • Position: #256 / 333
  • Number of attempts: 2
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2465 / 4262
  • Number of attempts: 3
For all cases. - 180 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #17 / 111
  • Number of attempts: 1
Missing Library and a Typo - 954 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 14
  • Best player score: 22
  • Position: #178 / 223
  • Number of attempts: 1
Basic renumbering - 5735 entries

Renumbering Basic.

  • Best score: 7
  • Best player score: 23
  • Position: #1055 / 1282
  • Number of attempts: 1
Simple addition - 351 entries

The right side of the equation is already there. We just need the left one now.

  • Best score: 12
  • Best player score: 15
  • Position: #105 / 128
  • Number of attempts: 2
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1610 / 2158
  • Number of attempts: 1
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3305 / 3995
  • Number of attempts: 1
Ezra Zigmond
Twitter:

entered into 11 challenges

contributed 0 challenges