Played Challenges
V to the i - 4795 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #921 / 1891
- Number of attempts: 2
Search and Replace 0 - 4952 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #222 / 1615
- Number of attempts: 5
Basic renumbering - 5643 entries
Renumbering Basic.
- Best score: 11
- Best player score: 19
- Position: #716 / 1261
- Number of attempts: 2
Swap assigned value - 643 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 13
- Position: #218 / 253
- Number of attempts: 2
Test everything! - 186 entries
... and build the desired input data structure. Transform a list of values into a non-trivial format.
- Best score: 22
- Best player score: 26
- Position: #20 / 54
- Number of attempts: 4
Condensed Cases - 800 entries
Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.
- Best score: 12
- Best player score: 15
- Position: #151 / 245
- Number of attempts: 2
Pretty format for variable declarations - 170 entries
Project standards demand the equal signs must be aligned for better readability.
- Best score: 13
- Best player score: 15
- Position: #27 / 64
- Number of attempts: 3
I forgot quotes - 15954 entries
Oops.
- Best score: 10
- Best player score: 16
- Position: #2385 / 4170
- Number of attempts: 3
vim1001 - 307 entries
change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )
- Best score: 17
- Best player score: 23
- Position: #62 / 110
- Number of attempts: 2
-a-b-c- - 3213 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 15
- Position: #497 / 1137
- Number of attempts: 1
Gray area - 747 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 14
- Position: #199 / 271
- Number of attempts: 3
Do you demand a shrubbery? - 1158 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 18
- Position: #135 / 300
- Number of attempts: 2
Shuffle puzzle - 346 entries
Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.
- Best score: 13
- Best player score: 14
- Position: #41 / 104
- Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10654 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #508 / 3678
- Number of attempts: 9
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: 16
- Position: #524 / 1075
- Number of attempts: 2
Sort the VimGolf challenges by popularity - 348 entries
"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!
- Best score: 15
- Best player score: 17
- Position: #68 / 107
- Number of attempts: 1
Words in parens - 12918 entries
We should all ace this, right?
- Best score: 13
- Best player score: 17
- Position: #2536 / 3957
- Number of attempts: 2
Minimalist Limerick - 520 entries
Reproduce this lovely poem.
- Best score: 30
- Best player score: 38
- Position: #110 / 174
- Number of attempts: 1
abcd > a b c d - 290 entries
transform the single spaces into 4 spaces repeat for each line
- Best score: 15
- Best player score: 15
- Position: #145 / 221
- Number of attempts: 1
Dehamlizing - 185 entries
Change this piece of HAML code back into erb
- Best score: 32
- Best player score: 38
- Position: #26 / 72
- Number of attempts: 2
NATO phonetic alphabet - 526 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 20
- Position: #53 / 195
- Number of attempts: 3
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: #77 / 191
- Number of attempts: 2
The name of the game - 665 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Position: #119 / 360
- Number of attempts: 2
lamb had a little Mary - 598 entries
"Mary" and "lamb" are swapped. Unswap them. Fast as you can.
- Best score: 16
- Best player score: 40
- Position: #134 / 165
- 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: 8
- Position: #62 / 446
- Number of attempts: 4
Saving the hashes(#) - 2048 entries
The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.
- Best score: 20
- Best player score: 31
- Position: #402 / 478
- Number of attempts: 1
Let's play some Ivmgolf - 1118 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 9
- Position: #268 / 445
- Number of attempts: 1
Vertical Limit - 2522 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 28
- Position: #585 / 751
- Number of attempts: 2
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: #212 / 273
- Number of attempts: 2
switch variable - 5061 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 13
- Position: #1081 / 1743
- Number of attempts: 2
Line Zipper - 471 entries
Zip/pair related lines.
- Best score: 12
- Best player score: 14
- Position: #82 / 213
- Number of attempts: 2
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: 27
- Position: #64 / 150
- Number of attempts: 3
The holy-grail may help - 362 entries
Can you find it in less than 20 strokes, Arthur?
- Best score: 16
- Best player score: 17
- Position: #178 / 208
- Number of attempts: 2
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: 14
- Position: #219 / 403
- Number of attempts: 4
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: 18
- Position: #364 / 506
- Number of attempts: 2
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: 16
- Position: #138 / 232
- Number of attempts: 3
Hatsuyume - 495 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 15
- Best player score: 25
- Position: #82 / 182
- Number of attempts: 2
The Cake is a Lie - 1324 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 9
- Position: #195 / 521
- Number of attempts: 1
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: 9
- Position: #200 / 242
- Number of attempts: 1
Simple text editing with Vim - 12626 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 21
- Position: #2829 / 3652
- Number of attempts: 1
Matt Robbins
Twitter: @mcrmfc
Lover of unfashionable music and fashionable programming languages...former BBC Frameworker and a very happy Dad!