Played Challenges
Simple, Practical, and Common - 33535 entries
Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.
- Best score: 22
- Best player score: 22
- Position: #1519 / 7397
- Number of attempts: 10
Swap values - 4606 entries
Well, swap the values...
- Best score: 11
- Best player score: 11
- Position: #129 / 1265
- Number of attempts: 7
Wrap the text of an email message to 79 characters - 750 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 5
- Position: #50 / 405
- Number of attempts: 1
Search and Replace 0 - 4952 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #111 / 1615
- Number of attempts: 6
Just the middle - 11417 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Position: #102 / 4181
- Number of attempts: 2
Interweave two blocks of text - 658 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: #81 / 213
- Number of attempts: 2
Vice versa - 7891 entries
Little role switching.
- Best score: 12
- Best player score: 17
- Position: #1568 / 2121
- Number of attempts: 1
Cartesian product - 248 entries
{1,2,3,4,5} X {1,2,3,4,5}
- Best score: 24
- Best player score: 26
- Position: #18 / 94
- Number of attempts: 6
I forgot quotes - 15954 entries
Oops.
- Best score: 10
- Best player score: 10
- Position: #525 / 4170
- Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10654 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1054 / 3678
- Number of attempts: 3
quotes inside quotes - 3154 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: 14
- Position: #26 / 1075
- Number of attempts: 5
Words in parens - 12918 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #70 / 3957
- Number of attempts: 13
Pairs of numbers - 362 entries
Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"
- Best score: 26
- Best player score: 39
- Position: #81 / 135
- Number of attempts: 4
Coordinates placeholder - 73 entries
Place coordinates instead of target search.
- Best score: 22
- Best player score: 25
- Position: #21 / 38
- Number of attempts: 2
Prefixes and suffixes - 629 entries
Generate all prefixes of "vimchallenge", then all suffixes.
- Best score: 17
- Best player score: 26
- Position: #76 / 196
- Number of attempts: 2
Create a pandoc compatible table - 214 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: 32
- Position: #7 / 56
- Number of attempts: 6
Add links to an existing HTML table - 97 entries
Add these links at that top to the respective table cell. First link, first cell, etc.
- Best score: 42
- Best player score: 48
- Position: #13 / 31
- Number of attempts: 2
SFD-ROC: The Quick Brown Fox - 189 entries
Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.
- Best score: 24
- Best player score: 29
- Position: #87 / 105
- Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 416 entries
Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."
- Best score: 8
- Best player score: 10
- Position: #39 / 191
- Number of attempts: 4
The name of the game - 665 entries
End up with the name of the game.
- Best score: 11
- Best player score: 12
- Position: #293 / 360
- Number of attempts: 1
SFD-ROC: vimvimvim - 1606 entries
Oh no, this line is longer than 80 chars... put each 'vim' on a new line.
- Best score: 8
- Best player score: 10
- Position: #262 / 446
- Number of attempts: 2
SFD-ROC: Pipe Dreams - 115 entries
Move the pipes so they match the output.
- Best score: 12
- Best player score: 16
- Position: #27 / 47
- Number of attempts: 3
Stairs Indenting - 473 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 14
- Position: #85 / 197
- Number of attempts: 3
Python to Ruby - 204 entries
Convert this Python code to Ruby. NOTE: This program likely won't run.
- Best score: 24
- Best player score: 31
- Position: #31 / 61
- Number of attempts: 3
Cleanining up 80 column concatenated text - 203 entries
1. Put the whole query on one line, remove the concatenation operators 2. Remove the double spaces that appear a few times in the query 3. Use string-interpolated variable statementPid rather than the ugly concatenation
- Best score: 31
- Best player score: 33
- Position: #25 / 79
- Number of attempts: 5
you're stuck on jQuery < 1.7 - 362 entries
replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`
- Best score: 25
- Best player score: 26
- Position: #16 / 113
- Number of attempts: 4
Inconsistent real estate paste - 213 entries
Format a hand-typed real estate listing that uses inconsistent punctuation into four sections
- Best score: 24
- Best player score: 26
- Position: #17 / 57
- Number of attempts: 4
Vertical Limit - 2522 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 23
- Position: #195 / 751
- Number of attempts: 5
replacing each line of a block selection - 2987 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 18
- Position: #40 / 774
- Number of attempts: 6
Switch function arguments - 2117 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 11
- Position: #35 / 657
- Number of attempts: 8
Append semicolon after expressions - 1046 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 13
- Position: #287 / 413
- Number of attempts: 1
Remove noise from HTTP log - 717 entries
This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.
- Best score: 15
- Best player score: 15
- Position: #45 / 273
- Number of attempts: 2
Remove semicolons after expressions - 648 entries
A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.
- Best score: 6
- Best player score: 6
- Position: #39 / 262
- Number of attempts: 3
switch variable - 5061 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #134 / 1743
- Number of attempts: 5
The meaning - 573 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Position: #150 / 361
- Number of attempts: 1
PHP <--> Java class conversion Part 1 - 254 entries
Convert this tiny php class to adequate java one.
- Best score: 65
- Best player score: 81
- Position: #18 / 63
- Number of attempts: 6
formatted text to markdown - 184 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: 79
- Position: #36 / 67
- Number of attempts: 4
Make it more readable - 1982 entries
Insert blank lines to make it more organized and readable
- Best score: 13
- Best player score: 13
- Position: #24 / 645
- Number of attempts: 5
Line Zipper - 471 entries
Zip/pair related lines.
- Best score: 12
- Best player score: 13
- Position: #49 / 213
- Number of attempts: 3
PHP Array Syntax -> MailChimp Merge Syntax - 545 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: 23
- Position: #15 / 150
- Number of attempts: 8
Case preserving word replacement - 454 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: 19
- Position: #18 / 180
- Number of attempts: 4
imports alignment (python) - 700 entries
Align as one import per line.
- Best score: 17
- Best player score: 17
- Position: #18 / 198
- Number of attempts: 6
HTML to Haml - 878 entries
Help convert this HTML page to Haml.
- Best score: 23
- Best player score: 27
- Position: #29 / 204
- Number of attempts: 8
Generate English Alphabets - 487 entries
Start with a, get up to z.
- Best score: 19
- Best player score: 25
- Position: #104 / 206
- Number of attempts: 2
Insert a Markdown link - 434 entries
Put a link in a markdown document, using the after-the-paragraph format.
- Best score: 22
- Best player score: 23
- Position: #28 / 145
- Number of attempts: 6
Numbering a List - 1929 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 18
- Position: #114 / 651
- Number of attempts: 9
The Universal Declaration of Human Rights, Article 1 - 163 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: 28
- Position: #55 / 71
- Number of attempts: 1
The holy-grail may help - 362 entries
Can you find it in less than 20 strokes, Arthur?
- Best score: 16
- Best player score: 16
- Position: #80 / 208
- Number of attempts: 1
Ruby 1.9 hashes - 1228 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: 12
- Position: #22 / 403
- Number of attempts: 4
Assignment Alignment - 875 entries
line up the operators. Use spaces, not tabs.
- Best score: 18
- Best player score: 18
- Position: #17 / 218
- Number of attempts: 7
Shebangs for all - 1961 entries
We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.
- Best score: 11
- Best player score: 12
- Position: #105 / 506
- Number of attempts: 12
Ruby 1.9 compat - 624 entries
Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!
- Best score: 14
- Best player score: 14
- Position: #19 / 232
- Number of attempts: 5
Indentation - 531 entries
Indent each line according to the right number of spaces it needs.
- Best score: 20
- Best player score: 30
- Position: #117 / 175
- Number of attempts: 2
Hatsuyume - 495 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 15
- Best player score: 26
- Position: #91 / 182
- Number of attempts: 5
The Cake is a Lie - 1330 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 9
- Position: #97 / 523
- Number of attempts: 4
Context insensitive completion 0 - 558 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: 7
- Position: #45 / 242
- Number of attempts: 4
Almost encrypted - 204 entries
Convert the first paragraph to be even less readable.
- Best score: 5
- Best player score: 5
- Position: #92 / 146
- Number of attempts: 1
Make Fancy Header - 1045 entries
Make the header text stand out with surrounding asterisks
- Best score: 15
- Best player score: 16
- Position: #40 / 342
- Number of attempts: 4
Reformat a C golf submission - 582 entries
Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.
- Best score: 22
- Best player score: 27
- Position: #47 / 206
- Number of attempts: 8
Reformat most common surnames - 691 entries
Reformat copy-pasted table into a list of the most common surnames
- Best score: 23
- Best player score: 25
- Position: #43 / 205
- Number of attempts: 9
Change the content of a string - 1541 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 22
- Position: #46 / 577
- Number of attempts: 6
Deleting folded text - 348 entries
The text below contains three folds. Delete them (and the text inside them). For example: 123 456 /*{{{*/ 789 /*}}}*/ 012 Should become: 123 012 Also, add `aoeuaoeu` to make sure small solutions don't get flagged as cheating.
- Best score: 17
- Best player score: 20
- Position: #44 / 115
- Number of attempts: 3
Sort and add attributes - 1418 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 33
- Position: #59 / 551
- Number of attempts: 4
Reconstruct the Sentence - 1467 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: 20
- Position: #20 / 403
- Number of attempts: 7
Braces or Brackets? - 958 entries
Someone forgot whether to use braces or brackets and you have to clean up their code!
- Best score: 34
- Best player score: 49
- Position: #209 / 306
- Number of attempts: 1
Whitespace, empty lines and tabs - 3569 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 19
- Position: #182 / 770
- Number of attempts: 8
Flodder-challenge - 1220 entries
Replace the text the most efficient and win!
- Best score: 27
- Best player score: 38
- Position: #211 / 327
- Number of attempts: 2
Simple text editing with Vim - 12627 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 13
- Position: #6 / 3653
- Number of attempts: 9
Reformat/Refactor a Golfer Class - 6825 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 33
- Position: #187 / 1673
- Number of attempts: 10
Emile Swarts
Twitter: @EmileSwarts
Tech Debt Shoota