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

replacing each line of a block selection - 2816 entries

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

  • Best score: 18
  • Best player score: 25
  • Position: #503 / 736
  • Number of attempts: 2
Switch function arguments - 1985 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #410 / 628
  • Number of attempts: 1
Make it more readable - 1905 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #337 / 625
  • 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: 28
  • Position: #65 / 144
  • Number of attempts: 1
Assignment Alignment - 782 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 33
  • Position: #183 / 211
  • Number of attempts: 1
Alex David
Twitter:

entered into 5 challenges

contributed 0 challenges