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

Rotating Philosophers Problem - 373 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: 31
  • Position: #87 / 157
  • Number of attempts: 2
HTML to Haml - 778 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 34
  • Position: #81 / 193
  • Number of attempts: 3
Reformat long lines - 320 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: 21
  • Position: #84 / 125
  • Number of attempts: 2
Generate English Alphabets - 427 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 26
  • Position: #137 / 190
  • Number of attempts: 1
Ruby 1.9 hashes - 1113 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 15
  • Position: #232 / 372
  • Number of attempts: 4
Shebangs for all - 1725 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 12
  • Position: #72 / 459
  • Number of attempts: 7
A Simple One - 875 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: 13
  • Position: #537 / 584
  • Number of attempts: 2
82 bottles of beer on the wall - 280 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 107
  • Best player score: 133
  • Position: #77 / 131
  • Number of attempts: 1
Table Reshuffle - 326 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 68
  • Position: #118 / 121
  • Number of attempts: 1
Ruby 1.9 compat - 566 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: 36
  • Position: #213 / 216
  • Number of attempts: 4
Hatsuyume - 368 entries

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

  • Best score: 16
  • Best player score: 24
  • Position: #38 / 154
  • Number of attempts: 4
The Cake is a Lie - 1168 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #282 / 477
  • Number of attempts: 3
Make Fancy Header - 929 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 17
  • Position: #146 / 313
  • Number of attempts: 3
Reconstruct the Sentence - 1066 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: 28
  • Position: #304 / 330
  • Number of attempts: 1
Tien Le
Twitter:

Simplicity is the ultimate sophistication - Leonardo Da Vinci

entered into 14 challenges

contributed 0 challenges