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

Exchanging Quotes - 799 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 50
  • Position: #210 / 219
  • Number of attempts: 2
replacing each line of a block selection - 2816 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 28
  • Position: #567 / 736
  • Number of attempts: 5
The meaning - 523 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #91 / 338
  • Number of attempts: 4
Format the output - 114 entries

Sometimes your standard out is a little hard to read. Take this multilevel hash and make it human readable.

  • Best score: 35
  • Best player score: 85
  • Position: #31 / 35
  • Number of attempts: 1
Replacing some words - 417 entries

How fast could it be?

  • Best score: 17
  • Best player score: 37
  • Position: #128 / 146
  • Number of attempts: 3
Make it more readable - 1905 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Position: #224 / 625
  • Number of attempts: 5
Line Zipper - 443 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #163 / 206
  • Number of attempts: 3
remove dupes from array - 1290 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 27
  • Position: #260 / 325
  • Number of attempts: 5
Alphabetize the directory - 269 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 38
  • Position: #60 / 97
  • Number of attempts: 5
PHP Array Syntax -> MailChimp Merge Syntax - 502 entries

I recently needed to send an e-mail to our marketing department listing allowed merge tags for our MailChimp campaigns. The allowed merge tags were determined from a PHP array in one of our PHP classes. I transformed the PHP class to MailChimp's syntax and sent the e-mail. It was, however, a long, laborious process. I'm still fairly new to Vim and would love to see how an expert Vim user would tackle one of my own, real-world problems. Thanks and have fun!

  • Best score: 23
  • Best player score: 34
  • Position: #89 / 144
  • Number of attempts: 5
Sort entries based on date - 339 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 18
  • Position: #89 / 110
  • Number of attempts: 6
Dave@Highgroove
Twitter:

Ruby, Rails, and web tech hacker by day, cyclist and beer fanatic by night. Part of a great team @Highgroove

entered into 11 challenges

contributed 0 challenges