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

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #537 / 1230
  • Number of attempts: 4
One number per line - 18240 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1141 / 3760
  • Number of attempts: 8
Split line with dots - 2075 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 20
  • Position: #353 / 616
  • Number of attempts: 2
O Christmas Tree - 99 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 / 40
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10507 entries

A HAPPY NEW YEAR 2014 !

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

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

  • Best score: 19
  • Best player score: 34
  • Position: #524 / 677
  • Number of attempts: 1
Words in parens - 12678 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #208 / 3904
  • Number of attempts: 5
Circle of Fifths with Sharps - 71 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: #27 / 31
  • Number of attempts: 1
switch variable - 4863 entries

how fast can you switch two variable ?

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

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

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

entered into 10 challenges

contributed 0 challenges