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: 13
  • Position: #775 / 1630
  • Number of attempts: 3
Interweave two blocks of text - 661 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 21
  • Position: #182 / 215
  • Number of attempts: 1
constructor - 182 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 107
  • Position: #37 / 60
  • Number of attempts: 3
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #687 / 1749
  • Number of attempts: 2
Line Zipper - 477 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 14
  • Position: #79 / 216
  • Number of attempts: 3
Numbering a List - 1935 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #223 / 654
  • Number of attempts: 4
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: #63 / 248
  • Number of attempts: 5
Compile C - 430 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #56 / 141
  • Number of attempts: 4
Simple text editing with Vim - 12989 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #54 / 3737
  • Number of attempts: 20
Reformat/Refactor a Golfer Class - 7154 entries

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

  • Best score: 28
  • Best player score: 33
  • Position: #210 / 1754
  • Number of attempts: 12
Calvin Condon
Twitter:

entered into 10 challenges

contributed 0 challenges