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

VimGolfNight - 555 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #4 / 345
  • Number of attempts: 3
Vim tetris - 353 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 45
  • Position: #95 / 102
  • Number of attempts: 3
quotes inside quotes - 3154 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 31
  • Position: #1056 / 1075
  • Number of attempts: 2
Words in parens - 12918 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1226 / 3957
  • Number of attempts: 3
Pairs of numbers - 362 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 42
  • Position: #93 / 135
  • Number of attempts: 4
Hole-in-one - 1017 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 16
  • Position: #25 / 303
  • Number of attempts: 8
Whitespace, empty lines and tabs - 3577 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 33
  • Position: #600 / 773
  • Number of attempts: 5
Simple text editing with Vim - 12639 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1102 / 3656
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6856 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 67
  • Position: #1585 / 1677
  • Number of attempts: 1
Leif Bladt
Twitter:

entered into 9 challenges

contributed 0 challenges