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

Add semicolons - 10541 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #805 / 2989
  • Number of attempts: 3
Word Blender - 129 entries

The insides of long words seem to have been run through the blender. Can you fix this famous tale, brave knight?

  • Best score: 28
  • Best player score: 71
  • Position: #44 / 54
  • Number of attempts: 1
Box it - 7682 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #116 / 1836
  • Number of attempts: 6
Interweave two blocks of text - 574 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 17
  • Position: #102 / 204
  • Number of attempts: 1
Reorder the groups - 1112 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 14
  • Position: #19 / 252
  • Number of attempts: 3
Create a pandoc compatible table - 176 entries

In [this vimcast][1], a featured gist from Tim Pope shows how to quickly make a simple table structure. How fast can you convert it to pandoc's markdown style? [1]: http://vimcasts.org/episodes/aligning-text-with-tabular-vim/

  • Best score: 32
  • Best player score: 33
  • Position: #15 / 50
  • Number of attempts: 9
PHP <--> Java class conversion Part 1 - 188 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 81
  • Position: #13 / 60
  • Number of attempts: 2
Multiplication table. - 195 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 85
  • Position: #45 / 63
  • Number of attempts: 1
Sort the cardinal numbers - 280 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Position: #96 / 141
  • Number of attempts: 1
Line Zipper - 443 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 13
  • Position: #28 / 206
  • Number of attempts: 3
remove dupes from array - 1290 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: 17
  • Position: #4 / 325
  • Number of attempts: 4
Alphabetize the directory - 269 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 32
  • Position: #31 / 97
  • Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 482 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: 25
  • Position: #47 / 143
  • Number of attempts: 5
Sort entries based on date - 339 entries

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

  • Best score: 11
  • Best player score: 13
  • Position: #66 / 110
  • Number of attempts: 2
Gabriel Barta
Twitter:

ursus pipio

entered into 14 challenges

contributed 0 challenges