Played Challenges
One number per line - 18480 entries
Just give me the numbers.
- Best score: 14
- Best player score: 20
- Position: #2076 / 3811
- Number of attempts: 4
Search and Replace 0 - 4743 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 13
- Position: #735 / 1572
- Number of attempts: 3
Vice versa - 7629 entries
Little role switching.
- Best score: 12
- Best player score: 13
- Position: #613 / 2069
- Number of attempts: 4
O Christmas Tree - 102 entries
Design a macro that makes trees grow (or ASCII triangles, if that's too hard).
- Best score: 22
- Best player score: 23
- Position: #5 / 41
- Number of attempts: 4
Subtraction - 177 entries
Solve the equations.
- Best score: 18
- Best player score: 24
- Position: #32 / 60
- Number of attempts: 2
Suffix sort - 244 entries
Sort from the end of the line, as if the letters in each line were reversed.
- Best score: 19
- Best player score: 25
- Position: #39 / 64
- Number of attempts: 4
Vim tetris - 352 entries
Vim can play tetris too!
- Best score: 21
- Best player score: 24
- Position: #42 / 101
- Number of attempts: 4
Five Pillars - 60 entries
Arrange all words in a table with 5 columns. The minimal space between words in columns is 2 spaces. Columns do have varying width.
- Best score: 41
- Best player score: 56
- Position: #5 / 22
- Number of attempts: 2
Carriage return - 42 entries
I have some raw data from terminal output which uses carriege return for formatting. Carriage return sets the pointer to the first character on the line, and subsequent characters will overwrite what was there before. The challange is to simulate the terminal behaviour in vim. I'm kind of unsure if I should have skipped lines 9 and 15, since there might be some interesting solutions which are not that generic. Happy Golfing!
- Best score: 22
- Best player score: 22
- Position: #9 / 20
- Number of attempts: 2
Going underground.... - 315 entries
Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...
- Best score: 22
- Best player score: 29
- Position: #52 / 122
- Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10564 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #18 / 3646
- Number of attempts: 5
attr_aligner - 3403 entries
Two attr keywords. Two separate indentations. Align the colons.
- Best score: 19
- Best player score: 19
- Position: #38 / 686
- Number of attempts: 8
Letter case trickery - 1580 entries
This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.
- Best score: 9
- Best player score: 11
- Position: #217 / 506
- Number of attempts: 5
quotes inside quotes - 3080 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: #87 / 1058
- Number of attempts: 5
Sort the VimGolf challenges by popularity - 340 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: 16
- Position: #49 / 103
- Number of attempts: 5
Words in parens - 12788 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #216 / 3930
- Number of attempts: 7
Hole-in-one - 985 entries
Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.
- Best score: 15
- Best player score: 17
- Position: #100 / 300
- Number of attempts: 6
It's a factor - 91 entries
Flaunt your macro prowess by factoring some numbers. Too hard? It takes less than 30 strokes, I promise.
- Best score: 24
- Best player score: 63
- Position: #19 / 36
- Number of attempts: 3
Lookahead and Lookbehind - 67 entries
Look everywhere
- Best score: 16
- Best player score: 20
- Position: #9 / 29
- Number of attempts: 3
Enumerate words - 241 entries
Enumerate the unique words in order.
- Best score: 23
- Best player score: 26
- Position: #39 / 86
- Number of attempts: 3
Circle of Fifths with Sharps - 92 entries
Display a list of the Circle of Fifths with corresponding solfege syllables with sharps. Handling spaces may be tricky.
- Best score: 24
- Best player score: 24
- Position: #7 / 34
- Number of attempts: 4
Shuffle and Sort - 201 entries
The values where sorted incorrectly. Get them back to how they are supposed to be
- Best score: 17
- Best player score: 22
- Position: #24 / 63
- Number of attempts: 4
Saving the hashes(#) - 1973 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: 25
- Position: #172 / 468
- Number of attempts: 4
replacing each line of a block selection - 2883 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 18
- Position: #8 / 756
- Number of attempts: 5
constructor - 178 entries
coding a constructor for a simple class
- Best score: 59
- Best player score: 70
- Position: #14 / 57
- Number of attempts: 7
switch variable - 4996 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #232 / 1723
- Number of attempts: 3
Ugly spreadsheet copy/paste to CSV - 952 entries
convert an ugly spreadsheet copy/paste into a CSV format.
- Best score: 19
- Best player score: 29
- Position: #77 / 183
- Number of attempts: 4
Replacing some words - 418 entries
How fast could it be?
- Best score: 17
- Best player score: 19
- Position: #37 / 147
- Number of attempts: 3
Make it more readable - 1928 entries
Insert blank lines to make it more organized and readable
- Best score: 13
- Best player score: 15
- Position: #209 / 635
- Number of attempts: 3
remove dupes from array - 1324 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: 20
- Position: #120 / 328
- Number of attempts: 6
Alphabetize the directory - 281 entries
Put the contacts and their information in alphabetical order.
- Best score: 30
- Best player score: 32
- Position: #34 / 98
- Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 505 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: 26
- Position: #56 / 146
- Number of attempts: 2
Sort entries based on date - 359 entries
Sort some entries in a Ledger-file based on date.
- Best score: 11
- Best player score: 12
- Position: #55 / 113
- Number of attempts: 2
Shebangs for all - 1804 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: 13
- Position: #178 / 475
- Number of attempts: 3
A Simple One - 971 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: #251 / 632
- Number of attempts: 1
Reverse Simple Deletion - 822 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #284 / 449
- Number of attempts: 1
Sort and add attributes - 1245 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 33
- Position: #92 / 503
- Number of attempts: 2
Reconstruct the Sentence - 1203 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: 21
- Position: #161 / 355
- Number of attempts: 1
Braces or Brackets? - 756 entries
Someone forgot whether to use braces or brackets and you have to clean up their code!
- Best score: 34
- Best player score: 36
- Position: #36 / 263
- Number of attempts: 4
Whitespace, empty lines and tabs - 3103 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 17
- Position: #33 / 689
- Number of attempts: 7
Flodder-challenge - 985 entries
Replace the text the most efficient and win!
- Best score: 27
- Best player score: 30
- Position: #69 / 287
- Number of attempts: 5
Simple text editing with Vim - 11865 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 13
- Position: #226 / 3472
- Number of attempts: 4
Reformat/Refactor a Golfer Class - 6225 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 32
- Best player score: 32
- Position: #81 / 1533
- Number of attempts: 7
Contributed Challenges
Five Pillars - 60 entries
Arrange all words in a table with 5 columns. The minimal space between words in columns is 2 spaces. Columns do have varying width.
oliver mueller
Twitter: @marcontwit
Programmer - mostly working with embedded systems in C++. Interested in Rust, Ruby and Haskell. Blog at http://t.co/QDcTy760Z