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 - 4614 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
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
Whitespace, empty lines and tabs - 2715 entries

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

  • Best score: 16
  • Best player score: 29
  • Number of attempts: 1
Replacing some words - 401 entries

How fast could it be?

  • Best score: 17
  • Best player score: 21
  • Number of attempts: 2
attr_aligner - 3237 entries

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

  • Best score: 19
  • Best player score: 34
  • Number of attempts: 1
constructor - 162 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 92
  • Number of attempts: 2
Words in parens - 11996 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 5
Counting in binary - 402 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
Reformat/Refactor a Golfer Class - 5661 entries

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

  • Best score: 32
  • Best player score: 40
  • 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
Simple text editing with Vim - 11020 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
Basic renumbering - 5108 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10091 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 8
Ugly spreadsheet copy/paste to CSV - 747 entries

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

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 4
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: 24
  • Number of attempts: 4
I forgot quotes - 14300 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 1
replacing each line of a block selection - 2682 entries

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

  • Best score: 18
  • Best player score: 21
  • Number of attempts: 3
Logging with key - 277 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 33
  • Number of attempts: 1
Grigoriy Glushko
Twitter:

entered into 18 challenges

contributed 0 challenges