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

Counting in binary - 322 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 43
  • Number of attempts: 1
attr_aligner - 2779 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 34
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2488 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 29
  • Number of attempts: 1
Land of the Lost - 60 entries

Enter the tabs below the lyrics

  • Best score: 26
  • Best player score: 40
  • Number of attempts: 1
Words in parens - 10287 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 5
Simple text editing with Vim - 9868 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: 5
switch variable - 4069 entries

how fast can you switch two variable ?

  • Best score: 3
  • Best player score: 13
  • Number of attempts: 1
constructor - 161 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 92
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5335 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 40
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9017 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 8
Rail fence transposition cipher - 63 entries

Solve a rail fence transposition cipher using vim. This ciphertext was created using two rails. Use vim to transpose the text and recover the original quote.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 2
I forgot quotes - 10040 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 1
Basic renumbering - 4076 entries

Renumbering Basic.

  • Best score: 2
  • Best player score: 18
  • Number of attempts: 2
Replacing some words - 402 entries

How fast could it be?

  • Best score: 2
  • Best player score: 21
  • Number of attempts: 2
replacing each line of a block selection - 2374 entries

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

  • Best score: 17
  • Best player score: 21
  • Number of attempts: 3
Logging with key - 263 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 33
  • Number of attempts: 1
PHP Array Syntax -> MailChimp Merge Syntax - 407 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: 24
  • Number of attempts: 4
Ugly spreadsheet copy/paste to CSV - 664 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 4
Grigoriy Glushko
Twitter:

entered into 18 challenges

contributed 0 challenges