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

Just the middle - 11500 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1701 / 4216
  • Number of attempts: 5
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2795 / 4194
  • Number of attempts: 4
formatted text to markdown - 184 entries

You're converting some posts from an old blog to markdown. The formatted text is far closer to the finished product than the html markup, so it seems like a good place to start. Word wrapping seems to be the main area for optimization.

  • Best score: 70
  • Best player score: 83
  • Position: #57 / 67
  • Number of attempts: 2
Line Zipper - 477 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #110 / 216
  • Number of attempts: 1
Alphabetize the directory - 298 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 33
  • Position: #42 / 101
  • Number of attempts: 5
Complete the hex array data (Part II) - 166 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 20
  • Best player score: 26
  • Position: #38 / 69
  • Number of attempts: 1
Generate English Alphabets - 502 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #105 / 209
  • Number of attempts: 2
Ruby 1.9 compat - 640 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: 14
  • Position: #17 / 236
  • Number of attempts: 5
The Cake is a Lie - 1374 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #105 / 534
  • Number of attempts: 3
Reconstruct the Sentence - 1649 entries

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

  • Best score: 19
  • Best player score: 20
  • Position: #40 / 434
  • Number of attempts: 5
Braces or Brackets? - 1073 entries

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

  • Best score: 34
  • Best player score: 43
  • Position: #139 / 331
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3793 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #196 / 814
  • Number of attempts: 6
Flodder-challenge - 1369 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 28
  • Position: #53 / 352
  • Number of attempts: 6
Simple text editing with Vim - 13095 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #8 / 3767
  • Number of attempts: 8
Reformat/Refactor a Golfer Class - 7230 entries

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

  • Best score: 10
  • Best player score: 38
  • Position: #607 / 1779
  • Number of attempts: 7
dtennant
Twitter:

I love mountains, anything outdoors, yoga, and all things geeky. I writes the C during the day, and Ruby at night.

entered into 15 challenges

contributed 0 challenges