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

The name of the game - 620 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #26 / 339
  • Number of attempts: 1
you're stuck on jQuery < 1.7 - 328 entries

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

  • Best score: 25
  • Best player score: 27
  • Position: #35 / 106
  • Number of attempts: 2
Sort the cardinal numbers - 268 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 12
  • Position: #6 / 138
  • Number of attempts: 1
imports alignment (python) - 639 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 20
  • Position: #67 / 190
  • Number of attempts: 3
Rotating Philosophers Problem - 374 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 30
  • Position: #49 / 158
  • Number of attempts: 2
HTML to Haml - 788 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 31
  • Position: #65 / 196
  • Number of attempts: 4
Reformat long lines - 323 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 17
  • Position: #52 / 127
  • Number of attempts: 3
Overall Vimgolf Rank - 142 entries

Suppose you are trying to figure out what your overall rank is at Vimgolf(the sum of all the ranks you got), and as a Vim ninja you decided to use Vim to do the job. Your solution should work for every Vimgolf profile page(The actual input file for this challenge is my Vimgolf profile page). So, direct answer insertion is considered cheating.

  • Best score: 23
  • Best player score: 24
  • Position: #14 / 56
  • Number of attempts: 5
Numbering a List - 1825 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 20
  • Position: #255 / 622
  • Number of attempts: 3
A Simple One - 912 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #178 / 606
  • Number of attempts: 1
Another Mixed-Up Haiku - 213 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 25
  • Position: #49 / 79
  • Number of attempts: 3
Braces or Brackets? - 682 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 40
  • Position: #60 / 249
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5968 entries

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

  • Best score: 32
  • Best player score: 33
  • Position: #173 / 1474
  • Number of attempts: 11
Sergey Doroshenko
Twitter:

entered into 13 challenges

contributed 0 challenges