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

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #549 / 1247
  • Number of attempts: 4
One number per line - 18480 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1171 / 3811
  • Number of attempts: 8
Split line with dots - 2113 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 20
  • Position: #358 / 625
  • 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 ! - 10564 entries

A HAPPY NEW YEAR 2014 !

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

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

  • Best score: 19
  • Best player score: 34
  • Position: #532 / 686
  • Number of attempts: 1
Words in parens - 12788 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #217 / 3930
  • Number of attempts: 5
Circle of Fifths with Sharps - 92 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: #30 / 34
  • Number of attempts: 1
switch variable - 4996 entries

how fast can you switch two variable ?

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

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

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

entered into 10 challenges

contributed 0 challenges