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

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

  • Best score: 12
  • Best player score: 13
  • Position: #783 / 1644
  • 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 - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #691 / 1756
  • 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 - 1941 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #225 / 657
  • Number of attempts: 4
Context insensitive completion 0 - 594 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 / 251
  • Number of attempts: 5
Compile C - 445 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #57 / 145
  • Number of attempts: 4
Simple text editing with Vim - 13423 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 / 3848
  • Number of attempts: 20
Reformat/Refactor a Golfer Class - 7514 entries

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

  • Best score: 7
  • Best player score: 33
  • Position: #218 / 1850
  • Number of attempts: 12
Calvin Condon
Twitter:

entered into 10 challenges

contributed 0 challenges