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

Python Hello World! Reformatting - 955 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Position: #138 / 371
  • Number of attempts: 1
HTML to Haml - 843 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 40
  • Position: #108 / 203
  • Number of attempts: 2
expand a list comprehension (python) - 302 entries

Please show your way to convert a list comprehension in python to an ordinary for-loop expression!

  • Best score: 42
  • Best player score: 62
  • Position: #82 / 107
  • Number of attempts: 1
The Universal Declaration of Human Rights, Article 1 - 149 entries

Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)

  • Best score: 24
  • Best player score: 27
  • Position: #44 / 70
  • Number of attempts: 2
A Simple One - 1009 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: #151 / 648
  • Number of attempts: 2
Sort and add attributes - 1368 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 34
  • Position: #298 / 541
  • Number of attempts: 3
Braces or Brackets? - 930 entries

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

  • Best score: 34
  • Best player score: 45
  • Position: #148 / 295
  • Number of attempts: 4
Whitespace, empty lines and tabs - 3492 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 22
  • Position: #246 / 756
  • Number of attempts: 3
Flodder-challenge - 1176 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 37
  • Position: #182 / 321
  • Number of attempts: 3
Simple text editing with Vim - 12467 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 16
  • Position: #2089 / 3621
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 6736 entries

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

  • Best score: 31
  • Best player score: 37
  • Position: #486 / 1651
  • Number of attempts: 6
Rörd Hinrichsen
Twitter:

entered into 11 challenges

contributed 0 challenges