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

Basic renumbering - 5449 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Position: #614 / 1231
  • Number of attempts: 2
Rail fence transposition cipher - 70 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
  • Position: #3 / 24
  • Number of attempts: 2
Land of the Lost - 76 entries

Enter the tabs below the lyrics

  • Best score: 26
  • Best player score: 40
  • Position: #15 / 29
  • Number of attempts: 1
Logging with key - 292 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 33
  • Position: #56 / 84
  • Number of attempts: 1
I forgot quotes - 15769 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2395 / 4119
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10555 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #28 / 3642
  • Number of attempts: 8
attr_aligner - 3402 entries

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

  • Best score: 19
  • Best player score: 34
  • Position: #533 / 685
  • Number of attempts: 1
Counting in binary - 442 entries

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

  • Best score: 16
  • Best player score: 43
  • Position: #81 / 110
  • Number of attempts: 1
Words in parens - 12769 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #137 / 3925
  • Number of attempts: 5
replacing each line of a block selection - 2838 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #299 / 741
  • Number of attempts: 3
constructor - 178 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 92
  • Position: #26 / 57
  • Number of attempts: 2
switch variable - 4963 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1014 / 1712
  • Number of attempts: 1
Ugly spreadsheet copy/paste to CSV - 905 entries

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

  • Best score: 19
  • Best player score: 22
  • Position: #49 / 176
  • Number of attempts: 4
Replacing some words - 417 entries

How fast could it be?

  • Best score: 17
  • Best player score: 21
  • Position: #75 / 146
  • 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: 24
  • Position: #33 / 144
  • Number of attempts: 4
Whitespace, empty lines and tabs - 3041 entries

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

  • Best score: 16
  • Best player score: 29
  • Position: #418 / 672
  • Number of attempts: 1
Simple text editing with Vim - 11705 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #750 / 3430
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6066 entries

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

  • Best score: 32
  • Best player score: 40
  • Position: #720 / 1496
  • Number of attempts: 1
Grigoriy Glushko
Twitter:

entered into 18 challenges

contributed 0 challenges