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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #847 / 3098
  • Number of attempts: 3
Word Blender - 157 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: #48 / 59
  • Number of attempts: 1
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #116 / 1901
  • Number of attempts: 6
Interweave two blocks of text - 692 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: #112 / 217
  • Number of attempts: 1
Reorder the groups - 1201 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #19 / 270
  • Number of attempts: 3
Create a pandoc compatible table - 241 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: #18 / 58
  • Number of attempts: 9
PHP <--> Java class conversion Part 1 - 258 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 81
  • Position: #17 / 64
  • Number of attempts: 2
Multiplication table. - 240 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 85
  • Position: #49 / 70
  • Number of attempts: 1
Sort the cardinal numbers - 328 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Position: #103 / 151
  • Number of attempts: 1
Line Zipper - 480 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 13
  • Position: #32 / 217
  • Number of attempts: 3
remove dupes from array - 1377 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 / 341
  • Number of attempts: 4
Alphabetize the directory - 331 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 32
  • Position: #35 / 104
  • Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 569 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: #52 / 152
  • Number of attempts: 5
Sort entries based on date - 432 entries

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

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

ursus pipio

entered into 14 challenges

contributed 0 challenges