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

Basic renumbering - 4613 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Number of attempts: 1
comment and uncomment code inline - 811 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
  • Number of attempts: 2
That hyphen - 2201 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 4
For all cases. - 105 entries

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

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 1
Vice versa - 5989 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Swap values - 3565 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 21
  • Number of attempts: 1
Simple addition - 233 entries

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

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 2
Just the middle - 9315 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Words in parens - 11097 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 1
Missing Library and a Typo - 708 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: 15
  • Best player score: 22
  • Number of attempts: 1
One number per line - 12990 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 1
Ezra Zigmond
Twitter:

entered into 11 challenges

contributed 0 challenges