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

Search and Replace 0 - 5004 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #36 / 1630
  • Number of attempts: 3
A Simple One - 1057 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #18 / 667
  • Number of attempts: 2
Round Round - 321 entries

Round Round

  • Best score: 19
  • Best player score: 775
  • Position: #88 / 88
  • Number of attempts: 1
Context insensitive completion 0 - 585 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 7
  • Position: #18 / 248
  • Number of attempts: 2
Context Insensitive completion 1 - 506 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #23 / 247
  • Number of attempts: 1
Sort and add attributes - 1476 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #13 / 574
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3741 entries

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

  • Best score: 16
  • Best player score: 26
  • Position: #414 / 802
  • Number of attempts: 4
Simple text editing with Vim - 12959 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #765 / 3731
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 7134 entries

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

  • Best score: 28
  • Best player score: 41
  • Position: #861 / 1751
  • Number of attempts: 4
Benoit D
Twitter:

entered into 9 challenges

contributed 0 challenges