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 - 989 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: #139 / 379
  • Number of attempts: 3
Ruby 1.9 hashes - 1239 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: 13
  • Position: #122 / 405
  • Number of attempts: 2
A Simple One - 1045 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: #82 / 660
  • Number of attempts: 2
82 bottles of beer on the wall - 310 entries

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

  • Best score: 106
  • Best player score: 146
  • Position: #109 / 144
  • Number of attempts: 2
Table Reshuffle - 410 entries

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

  • Best score: 22
  • Best player score: 28
  • Position: #46 / 138
  • Number of attempts: 2
Reverse and count - 473 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: 29
  • Position: #111 / 176
  • Number of attempts: 1
Another Mixed-Up Haiku - 250 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 21
  • Position: #5 / 88
  • Number of attempts: 3
Ruby 1.9 compat - 627 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: 22
  • Position: #213 / 233
  • Number of attempts: 1
Increment, increment, increment.... - 677 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #119 / 405
  • Number of attempts: 1
The Cake is a Lie - 1330 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #38 / 523
  • Number of attempts: 3
Make Fancy Header - 1046 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 16
  • Position: #6 / 343
  • Number of attempts: 4
Reformat some Python - 604 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 47
  • Position: #159 / 235
  • Number of attempts: 1
Get rid of html tags - 394 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 20
  • Position: #162 / 228
  • Number of attempts: 4
Change the content of a string - 1561 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #12 / 583
  • Number of attempts: 6
Sort and add attributes - 1431 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #17 / 556
  • Number of attempts: 4
Simple text editing with Vim - 12712 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #766 / 3671
  • Number of attempts: 8
Reformat/Refactor a Golfer Class - 6898 entries

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

  • Best score: 28
  • Best player score: 42
  • Position: #928 / 1689
  • Number of attempts: 1
Dmytro Shteflyuk
Twitter:

I'm a web developer who loves Ruby and Rails, Macs, and good TV shows. Currently working at Scribd (and very excited about it)

entered into 17 challenges

contributed 0 challenges