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 - 791 entries

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

  • Best score: 30
  • Best player score: 38
  • Position: #139 / 218
  • Number of attempts: 1
Switch function arguments - 1982 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #404 / 627
  • Number of attempts: 1
Append semicolon after expressions - 953 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 27
  • Position: #386 / 387
  • Number of attempts: 1
Reverse and double space - 448 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 19
  • Position: #160 / 184
  • Number of attempts: 1
Remove noise from HTTP log - 663 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: 16
  • Position: #143 / 261
  • Number of attempts: 2
Remove semicolons after expressions - 568 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 8
  • Position: #140 / 241
  • Number of attempts: 2
switch variable - 4944 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1040 / 1708
  • Number of attempts: 1
Format the output - 102 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: 84
  • Position: #29 / 34
  • Number of attempts: 2
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: 43
  • Position: #110 / 144
  • Number of attempts: 2
imports alignment (python) - 648 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 25
  • Position: #123 / 192
  • Number of attempts: 1
HTML to Haml - 820 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 32
  • Position: #74 / 199
  • Number of attempts: 4
Jacob Vosmaer
Twitter:

entered into 11 challenges

contributed 0 challenges