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

Wrap the text of an email message to 79 characters - 565 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #48 / 348
  • Number of attempts: 1
Search and Replace 0 - 4637 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #113 / 1536
  • Number of attempts: 2
Python Hello World! Reformatting - 894 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: 44
  • Position: #203 / 348
  • Number of attempts: 1
Sort the cardinal numbers - 268 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 12
  • Position: #4 / 138
  • Number of attempts: 2
Case preserving word replacement - 434 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 20
  • Position: #67 / 174
  • Number of attempts: 6
The holy-grail may help - 311 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #74 / 192
  • Number of attempts: 1
Assignment Alignment - 764 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 22
  • Position: #93 / 209
  • 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: #184 / 606
  • Number of attempts: 1
Reverse and count - 407 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 24
  • Position: #53 / 155
  • Number of attempts: 3
Ruby 1.9 compat - 587 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 16
  • Position: #125 / 224
  • Number of attempts: 2
Hatsuyume - 397 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 16
  • Best player score: 24
  • Position: #51 / 162
  • Number of attempts: 4
Almost encrypted - 179 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #60 / 135
  • Number of attempts: 1
Change the content of a string - 1341 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #47 / 517
  • Number of attempts: 3
Sort and add attributes - 1171 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #62 / 479
  • Number of attempts: 1
Reconstruct the Sentence - 1120 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 21
  • Position: #141 / 343
  • Number of attempts: 1
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: 37
  • Position: #36 / 249
  • Number of attempts: 3
Whitespace, empty lines and tabs - 2928 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #131 / 657
  • Number of attempts: 7
Flodder-challenge - 870 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 28
  • Position: #30 / 267
  • Number of attempts: 2
Simple text editing with Vim - 11588 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #798 / 3401
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 5979 entries

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

  • Best score: 32
  • Best player score: 36
  • Position: #387 / 1476
  • Number of attempts: 1
Terje Larsen
Twitter:

entered into 20 challenges

contributed 0 challenges