Played Challenges
Wrap the text of an email message to 79 characters - 766 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 5
- Position: #126 / 410
- Number of attempts: 1
Search and Replace 0 - 4989 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 14
- Position: #937 / 1624
- Number of attempts: 4
Python Hello World! Reformatting - 994 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: 46
- Position: #300 / 380
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10669 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 12
- Position: #1624 / 3684
- Number of attempts: 3
Words in parens - 12939 entries
We should all ace this, right?
- Best score: 13
- Best player score: 22
- Position: #3538 / 3964
- Number of attempts: 1
Complete the circuit grid! - 105 entries
Continuing from the last challenge, add additional rows to the grid. Change each of the names from 'A1'...'A10' to 'B1'...'B10', 'C1'...'C10', etc, and for each new row add 0.7 to the X values in the (X Y) at the end of each line.
- Best score: 46
- Best player score: 81
- Position: #25 / 30
- Number of attempts: 1
Convert pandoc unordered list to a numbered list - 166 entries
I know it's possible to use #. in pandoc to auto-generate numbered lists, but then it's not easy to tell how many items there are when reading it in Markdown. How fast can you make the switch?
- Best score: 20
- Best player score: 42
- Position: #45 / 57
- Number of attempts: 1
Create an alphabet diamond - 105 entries
Here's a brain teaser to keep things interesting...
- Best score: 37
- Best player score: 568
- Position: #32 / 32
- Number of attempts: 1
Vertical Limit - 2538 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 34
- Position: #706 / 754
- Number of attempts: 3
Aligning function arguments to match a specific coding style - 247 entries
Most projects have specific coding style guidelines. In this case, the argument list must be broken into a new line for each argument, with the argument names right aligned, taking into account pointers.
- Best score: 16
- Best player score: 32
- Position: #67 / 71
- Number of attempts: 1
replacing each line of a block selection - 2999 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 23
- Position: #448 / 777
- Number of attempts: 3
Switch function arguments - 2139 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 15
- Position: #538 / 663
- Number of attempts: 4
Append semicolon after expressions - 1056 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 13
- Position: #293 / 419
- Number of attempts: 2
Reverse and double space - 500 entries
Reverse the order of the given lines and double space everything
- Best score: 14
- Best player score: 19
- Position: #174 / 199
- 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: 17
- Position: #204 / 273
- Number of attempts: 1
Remove semicolons after expressions - 654 entries
A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.
- Best score: 6
- Best player score: 6
- Position: #41 / 263
- Number of attempts: 3
switch variable - 5071 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 21
- Position: #1676 / 1748
- Number of attempts: 1
The meaning - 575 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Position: #137 / 363
- Number of attempts: 2
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: 27
- Position: #168 / 180
- Number of attempts: 1
Complete the hex array data (Part II) - 166 entries
Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]
- Best score: 20
- Best player score: 26
- Position: #47 / 69
- Number of attempts: 2
Rotating Philosophers Problem - 410 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: 33
- Position: #132 / 166
- Number of attempts: 1
HTML to Haml - 878 entries
Help convert this HTML page to Haml.
- Best score: 23
- Best player score: 51
- Position: #175 / 204
- Number of attempts: 1
expand a list comprehension (python) - 333 entries
Please show your way to convert a list comprehension in python to an ordinary for-loop expression!
- Best score: 42
- Best player score: 70
- Position: #99 / 109
- Number of attempts: 1
Reformat long lines - 358 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: #118 / 134
- Number of attempts: 2
Generate English Alphabets - 487 entries
Start with a, get up to z.
- Best score: 19
- Best player score: 25
- Position: #119 / 206
- Number of attempts: 1
Numbering a List - 1931 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 25
- Position: #519 / 652
- Number of attempts: 1
The holy-grail may help - 366 entries
Can you find it in less than 20 strokes, Arthur?
- Best score: 16
- Best player score: 16
- Position: #115 / 209
- Number of attempts: 1
Ruby 1.9 hashes - 1244 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: 17
- Position: #323 / 406
- Number of attempts: 1
Shebangs for all - 1999 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: 18
- Position: #367 / 516
- Number of attempts: 1
A Simple One - 1050 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: #283 / 664
- Number of attempts: 1
82 bottles of beer on the wall - 313 entries
Take them down. (sorry, only 82 bottles because the problem size is limited!)
- Best score: 106
- Best player score: 160
- Position: #124 / 146
- Number of attempts: 1
Table Reshuffle - 429 entries
Fix the column order in this table... also append the new 'username' column.
- Best score: 22
- Best player score: 49
- Position: #129 / 139
- Number of attempts: 1
Ruby 1.9 compat - 629 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: 17
- Position: #146 / 234
- Number of attempts: 2
Reverse Simple Deletion - 847 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 15
- Position: #417 / 458
- Number of attempts: 3
Increment, increment, increment.... - 688 entries
Vim likes macros
- Best score: 10
- Best player score: 12
- Position: #237 / 408
- Number of attempts: 1
Sorting paragraphs - 534 entries
Order the paragraphs correctly, per prefixed index
- Best score: 18
- Best player score: 36
- Position: #108 / 163
- Number of attempts: 1
Indentation - 542 entries
Indent each line according to the right number of spaces it needs.
- Best score: 20
- Best player score: 29
- Position: #98 / 178
- Number of attempts: 4
Hatsuyume - 532 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 15
- Best player score: 45
- Position: #179 / 186
- Number of attempts: 1
The Cake is a Lie - 1346 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 12
- Position: #480 / 527
- Number of attempts: 2
Fix the Haiku - 308 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: 57
- Position: #107 / 113
- Number of attempts: 1
Context insensitive completion 0 - 577 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: #73 / 246
- Number of attempts: 4
Compile C - 430 entries
You might have to get clever to do this one.
- Best score: 19
- Best player score: 33
- Position: #134 / 141
- Number of attempts: 2
Context Insensitive completion 1 - 498 entries
Finish writing this simple Python HTTP server.
- Best score: 18
- Best player score: 18
- Position: #89 / 245
- Number of attempts: 1
Make Fancy Header - 1052 entries
Make the header text stand out with surrounding asterisks
- Best score: 15
- Best player score: 24
- Position: #299 / 344
- Number of attempts: 1
Reformat some Python - 609 entries
Fix some very bizarrely laid-out code.
- Best score: 34
- Best player score: 42
- Position: #118 / 236
- Number of attempts: 3
Reformat a C golf submission - 604 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: 39
- Position: #165 / 208
- Number of attempts: 1
Reverse characters in a line - 771 entries
You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.
- Best score: 12
- Best player score: 25
- Position: #233 / 265
- Number of attempts: 1
Reformat most common surnames - 717 entries
Reformat copy-pasted table into a list of the most common surnames
- Best score: 23
- Best player score: 65
- Position: #198 / 210
- Number of attempts: 1
Change the content of a string - 1580 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 27
- Position: #455 / 588
- Number of attempts: 1
Add fold markers to a .c file - 625 entries
Fold markers can make it easier to navigate source code. Add them to this .c file.
- Best score: 30
- Best player score: 49
- Position: #163 / 183
- Number of attempts: 1
Simple text editing with Vim - 12815 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 19
- Position: #2686 / 3696
- Number of attempts: 7
Reformat/Refactor a Golfer Class - 6984 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 39
- Position: #700 / 1708
- Number of attempts: 1
Arto Vuori
Twitter: @dhpe
Founder & CTO of @Usetrace - the cleverest functional testing tool for webapps.