Played Challenges
Wrap the text of an email message to 79 characters - 680 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 5
- Position: #83 / 387
- Number of attempts: 1
Interweave two blocks of text - 631 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: 22
- Position: #184 / 211
- Number of attempts: 1
quotes inside quotes - 3125 entries
taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)
- Best score: 14
- Best player score: 17
- Position: #706 / 1072
- Number of attempts: 1
Let's play some Ivmgolf - 1091 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 7
- Position: #43 / 441
- Number of attempts: 4
replacing each line of a block selection - 2947 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 24
- Position: #488 / 768
- Number of attempts: 2
constructor - 180 entries
coding a constructor for a simple class
- Best score: 59
- Best player score: 107
- Position: #37 / 58
- Number of attempts: 1
switch variable - 5036 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 14
- Position: #1285 / 1736
- Number of attempts: 2
Sort the cardinal numbers - 293 entries
Maybe a simple challenge.
- Best score: 12
- Best player score: 14
- Position: #100 / 146
- Number of attempts: 1
formatted text to markdown - 183 entries
You're converting some posts from an old blog to markdown. The formatted text is far closer to the finished product than the html markup, so it seems like a good place to start. Word wrapping seems to be the main area for optimization.
- Best score: 70
- Best player score: 96
- Position: #65 / 66
- Number of attempts: 1
remove dupes from array - 1336 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: 35
- Position: #312 / 331
- Number of attempts: 1
Alphabetize the directory - 283 entries
Put the contacts and their information in alphabetical order.
- Best score: 30
- Best player score: 37
- Position: #57 / 99
- Number of attempts: 1
PHP Array Syntax -> MailChimp Merge Syntax - 507 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: 38
- Position: #98 / 148
- Number of attempts: 2
Case preserving word replacement - 453 entries
Half way through my project, my people turned into dogs. Now I have to change everything in my source.
- Best score: 19
- Best player score: 23
- Position: #139 / 179
- Number of attempts: 2
Sort entries based on date - 363 entries
Sort some entries in a Ledger-file based on date.
- Best score: 11
- Best player score: 12
- Position: #47 / 114
- Number of attempts: 2
Rotating Philosophers Problem - 390 entries
Can you help the philosophers find a good place to sit before they get five forks and spaghetti?
- Best score: 29
- Best player score: 30
- Position: #63 / 163
- Number of attempts: 1
Numbering a List - 1859 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 20
- Position: #290 / 639
- Number of attempts: 1
The Universal Declaration of Human Rights, Article 1 - 148 entries
Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)
- Best score: 24
- Best player score: 36
- Position: #66 / 69
- Number of attempts: 1
A Simple One - 1001 entries
Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...
- Best score: 9
- Best player score: 9
- Position: #237 / 643
- Number of attempts: 1
82 bottles of beer on the wall - 303 entries
Take them down. (sorry, only 82 bottles because the problem size is limited!)
- Best score: 106
- Best player score: 113
- Position: #22 / 141
- Number of attempts: 5
The Cake is a Lie - 1286 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 10
- Position: #322 / 512
- Number of attempts: 3
Fix the Haiku - 275 entries
Change this slightly scrambled haiku to its unscrambled form and fix the capitalisation and punctuation along the way.
- Best score: 28
- Best player score: 31
- Position: #17 / 109
- Number of attempts: 4
Make Fancy Header - 1014 entries
Make the header text stand out with surrounding asterisks
- Best score: 16
- Best player score: 18
- Position: #223 / 338
- Number of attempts: 3
Reconstruct the Sentence - 1369 entries
Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.
- Best score: 20
- Best player score: 22
- Position: #245 / 384
- Number of attempts: 2
Reformat/Refactor a Golfer Class - 6560 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 32
- Best player score: 39
- Position: #663 / 1616
- Number of attempts: 5
Mislav Marohnić
Twitter: @mislav
I'm your favorite kind of geek.