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

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

  • Best score: 12
  • Best player score: 13
  • Position: #772 / 1643
  • Number of attempts: 5
Numbering a List - 1941 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #200 / 657
  • Number of attempts: 6
Ruby 1.9 hashes - 1277 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: #213 / 413
  • Number of attempts: 8
Compile C - 445 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 31
  • Position: #132 / 145
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3949 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #683 / 841
  • Number of attempts: 1
Simple text editing with Vim - 13419 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 / 3846
  • Number of attempts: 16
Reformat/Refactor a Golfer Class - 7508 entries

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

  • Best score: 7
  • Best player score: 43
  • Position: #1060 / 1847
  • Number of attempts: 5
Gary Rennie
Twitter:

Author of githug. http://githug.me

entered into 7 challenges

contributed 0 challenges