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

Braces or Brackets? - 625 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 54
  • Number of attempts: 1
PHP Array Syntax -> MailChimp Merge Syntax - 414 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: 2
attr_aligner - 2847 entries

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

  • Best score: 19
  • Best player score: 57
  • Number of attempts: 1
Complete the hex array data - 174 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 23
  • Best player score: 37
  • Number of attempts: 1
I forgot quotes - 10876 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 9280 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
The meaning - 491 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 6
  • Number of attempts: 1
Just the middle - 8773 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Words in parens - 10644 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 2
Simple text editing with Vim - 10132 entries

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

  • Best score: 13
  • Best player score: 24
  • Number of attempts: 1
Space out the alphabet - 1318 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 30
  • Number of attempts: 1
Switch function arguments - 1795 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 22
  • Number of attempts: 1
Change the content of a string - 1208 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Number of attempts: 2
Sort entries based on date - 296 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 26
  • Number of attempts: 1
Happy New Year! - 129 entries

This is a simple new year's challenge.

  • Best score: 22
  • Best player score: 30
  • Number of attempts: 3
Gowtham Madhava
Twitter:

I think 160 (one hundred sixty) characters are not enough to describe myself because my bio is too big to be accommodated in 160 (one hundred sixty) characters.

entered into 15 challenges

contributed 0 challenges