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

Sort the VimGolf challenges by popularity - 338 entries

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

  • Best score: 15
  • Best player score: 20
  • Position: #89 / 102
  • Number of attempts: 4
Word frequency alignment - 241 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #82 / 145
  • Number of attempts: 2
Enumerate words - 232 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 47
  • Position: #84 / 84
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 388 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 13
  • Position: #167 / 180
  • Number of attempts: 1
Remove noise from HTTP log - 660 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 18
  • Position: #230 / 260
  • Number of attempts: 1
The meaning - 521 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 7
  • Position: #326 / 336
  • Number of attempts: 1
HTML to Haml - 800 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 53
  • Position: #174 / 197
  • Number of attempts: 1
Ruby 1.9 hashes - 1157 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: 21
  • Position: #363 / 382
  • Number of attempts: 3
Assignment Alignment - 770 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 31
  • Position: #177 / 210
  • Number of attempts: 2
Reverse Simple Deletion - 759 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 13
  • Position: #364 / 429
  • Number of attempts: 1
The Cake is a Lie - 1203 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #410 / 488
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6014 entries

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

  • Best score: 32
  • Best player score: 60
  • Position: #1388 / 1481
  • Number of attempts: 1
CHIP CASTLE
Twitter:

Unix user. Vociferous Vimmer. Javascript juker. Sleeps like a cougar in a potato sack.

entered into 12 challenges

contributed 0 challenges