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

switch variable - 4613 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Bad Copy Syntax - 1582 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
ninja substitution - 993 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 1
Add semicolons - 7674 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
Replacing some words - 401 entries

How fast could it be?

  • Best score: 17
  • Best player score: 38
  • Number of attempts: 1
remove dupes from array - 1257 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
PHP Array Syntax -> MailChimp Merge Syntax - 439 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
Assignment Alignment - 716 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 28
  • Number of attempts: 5
Simple text editing with Vim - 10989 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
Box it - 6012 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 7
Make it more readable - 1797 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 - 2104 entries

Easy challenge.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 4
change parenthesis - 215 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Com(m)a Trouble - 2699 entries

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

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Applying same text modification in several lines - 2372 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
Scott Schlesier
Twitter:

entered into 15 challenges

contributed 0 challenges