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

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

  • Best score: 12
  • Best player score: 36
  • Position: #1604 / 1627
  • Number of attempts: 1
Ruby 1.9 compat - 629 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: #207 / 234
  • Number of attempts: 2
Context insensitive completion 0 - 577 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: #241 / 246
  • Number of attempts: 1
Reverse characters in a line - 771 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: #232 / 265
  • Number of attempts: 1
Get rid of html tags - 405 entries

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

  • Best score: 12
  • Best player score: 22
  • Position: #186 / 234
  • Number of attempts: 3
Sort and add attributes - 1467 entries

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

  • Best score: 33
  • Best player score: 43
  • Position: #546 / 570
  • Number of attempts: 1
Reconstruct the Sentence - 1530 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: #397 / 417
  • Number of attempts: 1
Simple text editing with Vim - 12856 entries

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

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

SAP Hacker, Integrator, Author, Bread Maker.

entered into 8 challenges

contributed 0 challenges