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

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

  • Best score: 12
  • Best player score: 13
  • Position: #686 / 1507
  • Number of attempts: 5
Numbering a List - 1774 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #164 / 609
  • Number of attempts: 6
Ruby 1.9 hashes - 1113 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 14
  • Position: #191 / 372
  • Number of attempts: 8
Compile C - 288 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 31
  • Position: #107 / 115
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2774 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #521 / 632
  • Number of attempts: 1
Simple text editing with Vim - 11354 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #20 / 3335
  • Number of attempts: 16
Reformat/Refactor a Golfer Class - 5804 entries

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

  • Best score: 32
  • Best player score: 43
  • Position: #898 / 1438
  • Number of attempts: 5
Gary Rennie
Twitter:

Author of githug. http://githug.me

entered into 7 challenges

contributed 0 challenges