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

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

  • Best score: 12
  • Best player score: 36
  • Position: #1608 / 1631
  • Number of attempts: 1
Ruby 1.9 compat - 640 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 21
  • Position: #209 / 236
  • Number of attempts: 2
Context insensitive completion 0 - 590 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: 14
  • Position: #244 / 249
  • Number of attempts: 1
Reverse characters in a line - 778 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 25
  • Position: #234 / 268
  • Number of attempts: 1
Get rid of html tags - 412 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 22
  • Position: #189 / 238
  • Number of attempts: 3
Sort and add attributes - 1480 entries

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

  • Best score: 33
  • Best player score: 43
  • Position: #552 / 576
  • Number of attempts: 1
Reconstruct the Sentence - 1599 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 44
  • Position: #404 / 426
  • Number of attempts: 1
Simple text editing with Vim - 13017 entries

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

  • Best score: 13
  • Best player score: 31
  • Position: #3449 / 3745
  • Number of attempts: 1
DJ Adams
Twitter:

SAP Hacker, Integrator, Author, Bread Maker.

entered into 8 challenges

contributed 0 challenges