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 - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 21
  • Position: #1186 / 1274
  • Number of attempts: 1
One number per line - 18755 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #2900 / 3870
  • Number of attempts: 1
That hyphen - 2595 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Position: #356 / 701
  • Number of attempts: 4
comment and uncomment code inline - 1124 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: #247 / 323
  • Number of attempts: 2
Just the middle - 11483 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2450 / 4209
  • Number of attempts: 3
For all cases. - 161 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #17 / 106
  • Number of attempts: 1
Missing Library and a Typo - 893 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: #169 / 214
  • Number of attempts: 1
Basic renumbering - 5683 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1043 / 1269
  • Number of attempts: 1
Simple addition - 331 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: #100 / 123
  • Number of attempts: 2
Vice versa - 7945 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1594 / 2138
  • Number of attempts: 1
Words in parens - 12967 entries

We should all ace this, right?

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

entered into 11 challenges

contributed 0 challenges