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

Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #544 / 1241
  • Number of attempts: 4
One number per line - 18377 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1161 / 3787
  • Number of attempts: 8
Split line with dots - 2098 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 20
  • Position: #357 / 622
  • Number of attempts: 2
O Christmas Tree - 102 entries

Design a macro that makes trees grow (or ASCII triangles, if that's too hard).

  • Best score: 22
  • Best player score: 30
  • Position: #24 / 41
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #19 / 3637
  • Number of attempts: 3
attr_aligner - 3402 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 34
  • Position: #531 / 685
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #212 / 3919
  • Number of attempts: 5
Circle of Fifths with Sharps - 82 entries

Display a list of the Circle of Fifths with corresponding solfege syllables with sharps. Handling spaces may be tricky.

  • Best score: 24
  • Best player score: 55
  • Position: #29 / 33
  • Number of attempts: 1
switch variable - 4917 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #414 / 1701
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 5993 entries

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

  • Best score: 32
  • Best player score: 40
  • Position: #746 / 1478
  • Number of attempts: 1
Joel Gärtner
Twitter:

entered into 10 challenges

contributed 0 challenges