Played Challenges
Wrap the text of an email message to 79 characters - 885 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 16
- Position: #443 / 458
- Number of attempts: 1
Search and Replace 0 - 5170 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 7
- Best player score: 13
- Position: #797 / 1680
- Number of attempts: 4
Python Hello World! Reformatting - 1057 entries
A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.
- Best score: 39
- Best player score: 45
- Position: #293 / 402
- Number of attempts: 1
switch variable - 5136 entries
how fast can you switch two variable ?
- Best score: 9
- Best player score: 14
- Position: #1282 / 1767
- Number of attempts: 3
Replacing some words - 445 entries
How fast could it be?
- Best score: 17
- Best player score: 25
- Position: #93 / 152
- Number of attempts: 3
Make it more readable - 2041 entries
Insert blank lines to make it more organized and readable
- Best score: 13
- Best player score: 17
- Position: #430 / 659
- Number of attempts: 1
remove dupes from array - 1379 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: 25
- Position: #242 / 342
- 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: 35
- Position: #98 / 152
- Number of attempts: 1
Case preserving word replacement - 477 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: 28
- Position: #176 / 186
- Number of attempts: 1
expand a list comprehension (python) - 348 entries
Please show your way to convert a list comprehension in python to an ordinary for-loop expression!
- Best score: 42
- Best player score: 65
- Position: #91 / 111
- Number of attempts: 1
Reformat long lines - 390 entries
Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.
- Best score: 15
- Best player score: 23
- Position: #121 / 142
- Number of attempts: 1
Numbering a List - 1970 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 22
- Position: #435 / 662
- Number of attempts: 2
Ruby 1.9 hashes - 1315 entries
Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!
- Best score: 12
- Best player score: 21
- Position: #393 / 421
- Number of attempts: 1
A Simple One - 1096 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: #246 / 683
- Number of attempts: 1
Letters are numbers - 179 entries
Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?
- Best score: 20
- Best player score: 32
- Position: #63 / 78
- Number of attempts: 1
Increment, increment, increment.... - 712 entries
Vim likes macros
- Best score: 10
- Best player score: 12
- Position: #226 / 420
- Number of attempts: 1
The Cake is a Lie - 1422 entries
Correct the capitalization of each word
- Best score: 8
- Best player score: 11
- Position: #435 / 546
- Number of attempts: 1
Context insensitive completion 0 - 611 entries
Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.
- Best score: 6
- Best player score: 9
- Position: #203 / 258
- Number of attempts: 1
Reverse characters in a line - 848 entries
You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.
- Best score: 8
- Best player score: 31
- Position: #261 / 285
- Number of attempts: 1
Change the content of a string - 1810 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 23
- Position: #295 / 659
- Number of attempts: 2
Whitespace, empty lines and tabs - 4083 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 7
- Best player score: 35
- Position: #737 / 872
- Number of attempts: 1
Simple text editing with Vim - 13682 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 16
- Position: #2286 / 3920
- Number of attempts: 3
VimGolf