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 - 378 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: #96 / 113
  • Number of attempts: 4
Word frequency alignment - 310 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 / 166
  • Number of attempts: 2
Enumerate words - 279 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 47
  • Position: #96 / 96
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 465 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: #187 / 202
  • Number of attempts: 1
Remove noise from HTTP log - 760 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: #248 / 282
  • Number of attempts: 1
The meaning - 589 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 7
  • Position: #358 / 369
  • Number of attempts: 1
HTML to Haml - 906 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 53
  • Position: #184 / 208
  • Number of attempts: 1
Ruby 1.9 hashes - 1315 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: #396 / 421
  • Number of attempts: 3
Assignment Alignment - 909 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 31
  • Position: #189 / 226
  • Number of attempts: 2
Reverse Simple Deletion - 875 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 13
  • Position: #394 / 467
  • Number of attempts: 1
The Cake is a Lie - 1422 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 11
  • Position: #449 / 546
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 7737 entries

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

  • Best score: 7
  • Best player score: 60
  • Position: #1712 / 1901
  • 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