Played Challenges
Search and Replace 0 - 5170 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 7
- Best player score: 12
- Position: #30 / 1680
- Number of attempts: 9
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: 42
- Position: #97 / 402
- Number of attempts: 3
Swap assigned value - 696 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #118 / 264
- Number of attempts: 1
Changing URL path in CSS - 157 entries
What's the quickest way to swap out all the URLs in a CSS file? Is it wasted keystrokes using look-behinds and look-aheads? (I'm sorry for the delete/report--I made a mistake with the last one requiring an ugly search for graphic to replace with images. I just intended this to be a simple search and replace that might possibly generate some macros or normals solutions that are quicker)
- Best score: 40
- Best player score: 40
- Position: #11 / 66
- Number of attempts: 2
Python to Ruby - 218 entries
Convert this Python code to Ruby. NOTE: This program likely won't run.
- Best score: 24
- Best player score: 27
- Position: #22 / 64
- Number of attempts: 4
Reverse and double space - 514 entries
Reverse the order of the given lines and double space everything
- Best score: 14
- Best player score: 20
- Position: #186 / 204
- Number of attempts: 1
The meaning - 589 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Position: #1 / 369
- 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: 18
- Position: #97 / 342
- Number of attempts: 4
Happy New Year! - 151 entries
This is a simple new year's challenge.
- Best score: 22
- Best player score: 24
- Position: #11 / 62
- Number of attempts: 3
Overall Vimgolf Rank - 224 entries
Suppose you are trying to figure out what your overall rank is at Vimgolf(the sum of all the ranks you got), and as a Vim ninja you decided to use Vim to do the job. Your solution should work for every Vimgolf profile page(The actual input file for this challenge is my Vimgolf profile page). So, direct answer insertion is considered cheating.
- Best score: 21
- Best player score: 24
- Position: #19 / 61
- Number of attempts: 1
The holy-grail may help - 408 entries
Can you find it in less than 20 strokes, Arthur?
- Best score: 16
- Best player score: 16
- Position: #23 / 222
- 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: 13
- Position: #127 / 421
- Number of attempts: 2
Shebangs for all - 2105 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: #88 / 534
- Number of attempts: 4
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: #45 / 683
- Number of attempts: 3
Reverse and count - 502 entries
Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.
- Best score: 18
- Best player score: 24
- Position: #60 / 182
- Number of attempts: 3
Ruby 1.9 compat - 670 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: 16
- Position: #135 / 245
- Number of attempts: 2
Reverse Simple Deletion - 875 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #106 / 467
- Number of attempts: 1
Increment, increment, increment.... - 712 entries
Vim likes macros
- Best score: 10
- Best player score: 12
- Position: #145 / 420
- Number of attempts: 2
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: 194
- Position: #285 / 285
- Number of attempts: 1
Sort and add attributes - 1605 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 33
- Position: #9 / 622
- Number of attempts: 3
Reconstruct the Sentence - 1763 entries
Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.
- Best score: 19
- Best player score: 21
- Position: #188 / 461
- 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: 14
- Position: #803 / 3920
- Number of attempts: 4
Reformat/Refactor a Golfer Class - 7737 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 7
- Best player score: 34
- Position: #292 / 1901
- Number of attempts: 4
Ricardo Mendes
Twitter: @locks
Oh god, can you feel the neck on my fretless bass? *squee* (archive: http://tweets.locks.io)
VimGolf