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 some words - 400 entries

How fast could it be?

  • Best score: 17
  • Best player score: 38
  • Number of attempts: 1
Bad Copy Syntax - 829 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 19
  • Best player score: 23
  • Number of attempts: 1
Assignment Alignment - 700 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 28
  • Number of attempts: 5
Applying same text modification in several lines - 1857 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 6
Add semicolons - 3572 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
Simple text editing with Vim - 10600 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 6
change parenthesis - 172 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 427 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: 52
  • Number of attempts: 4
remove dupes from array - 1205 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: 24
  • Number of attempts: 1
Make it more readable - 1765 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 3
Swap values inside brackets - 1685 entries

Easy challenge.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 4
switch variable - 4385 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Com(m)a Trouble - 1952 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
ninja substitution - 692 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 1
Box it - 3907 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 7
Scott Schlesier
Twitter:

entered into 15 challenges

contributed 0 challenges