Played Challenges
V to the i - 4641 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #905 / 1857
- Number of attempts: 2
Search and Replace 0 - 4676 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #222 / 1549
- Number of attempts: 5
Basic renumbering - 5436 entries
Renumbering Basic.
- Best score: 11
- Best player score: 19
- Position: #693 / 1228
- Number of attempts: 2
Swap assigned value - 561 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 13
- Position: #205 / 236
- Number of attempts: 2
Test everything! - 137 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: #15 / 48
- Number of attempts: 4
Condensed Cases - 758 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: #143 / 231
- Number of attempts: 2
Pretty format for variable declarations - 144 entries
Project standards demand the equal signs must be aligned for better readability.
- Best score: 14
- Best player score: 15
- Position: #21 / 55
- Number of attempts: 3
I forgot quotes - 15748 entries
Oops.
- Best score: 10
- Best player score: 16
- Position: #2345 / 4116
- Number of attempts: 3
vim1001 - 269 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: #59 / 105
- Number of attempts: 2
-a-b-c- - 3118 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 15
- Position: #482 / 1112
- Number of attempts: 1
Gray area - 702 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 14
- Position: #192 / 260
- Number of attempts: 3
Do you demand a shrubbery? - 1107 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 18
- Position: #134 / 292
- Number of attempts: 2
Shuffle puzzle - 307 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: #37 / 100
- Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10538 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #508 / 3638
- Number of attempts: 9
quotes inside quotes - 3030 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: #502 / 1045
- Number of attempts: 2
Sort the VimGolf challenges by popularity - 338 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: #65 / 102
- Number of attempts: 1
Words in parens - 12736 entries
We should all ace this, right?
- Best score: 13
- Best player score: 17
- Position: #2506 / 3919
- Number of attempts: 2
Minimalist Limerick - 507 entries
Reproduce this lovely poem.
- Best score: 31
- Best player score: 38
- Position: #108 / 168
- Number of attempts: 1
abcd > a b c d - 263 entries
transform the single spaces into 4 spaces repeat for each line
- Best score: 15
- Best player score: 15
- Position: #145 / 207
- Number of attempts: 1
Dehamlizing - 174 entries
Change this piece of HAML code back into erb
- Best score: 32
- Best player score: 38
- Position: #25 / 67
- Number of attempts: 2
NATO phonetic alphabet - 479 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 20
- Position: #50 / 182
- Number of attempts: 3
The Quick Brown Fox Jumps Over The Lazy Vim - 388 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: #72 / 180
- Number of attempts: 2
The name of the game - 629 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Position: #119 / 344
- Number of attempts: 2
lamb had a little Mary - 559 entries
"Mary" and "lamb" are swapped. Unswap them. Fast as you can.
- Best score: 16
- Best player score: 40
- Position: #130 / 157
- Number of attempts: 1
SFD-ROC: vimvimvim - 1510 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 / 424
- Number of attempts: 4
Saving the hashes(#) - 1966 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: #394 / 467
- Number of attempts: 1
Let's play some Ivmgolf - 1015 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 9
- Position: #254 / 420
- Number of attempts: 1
Vertical Limit - 2370 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 28
- Position: #561 / 718
- Number of attempts: 2
Remove noise from HTTP log - 663 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: #205 / 261
- Number of attempts: 2
switch variable - 4944 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 13
- Position: #1062 / 1708
- Number of attempts: 2
Line Zipper - 443 entries
Zip/pair related lines.
- Best score: 12
- Best player score: 14
- Position: #79 / 206
- Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 502 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: #62 / 144
- Number of attempts: 3
The holy-grail may help - 322 entries
Can you find it in less than 20 strokes, Arthur?
- Best score: 16
- Best player score: 17
- Position: #171 / 196
- Number of attempts: 2
Ruby 1.9 hashes - 1172 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: #211 / 386
- Number of attempts: 4
Shebangs for all - 1777 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: #346 / 468
- Number of attempts: 2
Ruby 1.9 compat - 597 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: #132 / 226
- Number of attempts: 3
Hatsuyume - 423 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 16
- Best player score: 25
- Position: #70 / 167
- Number of attempts: 2
The Cake is a Lie - 1215 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 9
- Position: #195 / 491
- Number of attempts: 1
Context insensitive completion 0 - 474 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: 7
- Best player score: 9
- Position: #183 / 223
- Number of attempts: 1
Simple text editing with Vim - 11657 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 21
- Position: #2661 / 3418
- Number of attempts: 1
Matt Robbins
Twitter: @mcrmfc
Lover of unfashionable music and fashionable programming languages...former BBC Frameworker and a very happy Dad!