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

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

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #113 / 1572
  • Number of attempts: 2
Python Hello World! Reformatting - 921 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: #208 / 359
  • Number of attempts: 1
Sort the cardinal numbers - 284 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 12
  • Position: #4 / 143
  • Number of attempts: 2
Case preserving word replacement - 444 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: #70 / 178
  • Number of attempts: 6
The holy-grail may help - 330 entries

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

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

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 22
  • Position: #98 / 215
  • Number of attempts: 3
A Simple One - 971 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 / 632
  • Number of attempts: 1
Reverse and count - 432 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: #63 / 168
  • Number of attempts: 3
Ruby 1.9 compat - 602 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: #129 / 228
  • Number of attempts: 2
Hatsuyume - 442 entries

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

  • Best score: 16
  • Best player score: 24
  • Position: #60 / 173
  • Number of attempts: 4
Almost encrypted - 195 entries

Convert the first paragraph to be even less readable.

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

This docstring is a complete lie. Fix it.

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

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

  • Best score: 33
  • Best player score: 33
  • Position: #62 / 503
  • Number of attempts: 1
Reconstruct the Sentence - 1203 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: #150 / 355
  • Number of attempts: 1
Braces or Brackets? - 754 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: #42 / 262
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3102 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #146 / 688
  • Number of attempts: 7
Flodder-challenge - 978 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 28
  • Position: #36 / 285
  • Number of attempts: 2
Simple text editing with Vim - 11862 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #817 / 3471
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 6223 entries

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

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

entered into 20 challenges

contributed 0 challenges