Played Challenges
Array propagate - 289 entries
Complete the array with the keys as part of the value
- Best score: 23
- Best player score: 24
- Number of attempts: 4
Team names - 1752 entries
The team names are misspelled.
- Best score: 16
- Best player score: 16
- Number of attempts: 4
Interactive git rebase changing commands - 155 entries
How to change the action of some commits in git rebase dialog.
- Best score: 15
- Best player score: 15
- Number of attempts: 2
multiple cursor alternative - 1410 entries
from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/
- Best score: 19
- Best player score: 20
- Number of attempts: 6
Hello ${world} - 290 entries
Migrate a JavaScript String from concatenation to ES6 interpolation.
- Best score: 24
- Best player score: 24
- Number of attempts: 5
Array transposition - 2234 entries
Transpose two arrays into one.
- Best score: 16
- Best player score: 17
- Number of attempts: 10
Missing Library and a Typo - 815 entries
I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.
- Best score: 15
- Best player score: 16
- Number of attempts: 3
From argument to object - 1246 entries
This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?
- Best score: 17
- Best player score: 17
- Number of attempts: 2
comment and uncomment code inline - 973 entries
It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.
- Best score: 3
- Best player score: 9
- Number of attempts: 3
Fiddle percentages into real numbers - 784 entries
Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.
- Best score: 13
- Best player score: 13
- Number of attempts: 4
Order and join - 834 entries
There's something special about the input order.
- Best score: 10
- Best player score: 10
- Number of attempts: 5
Every other line - 2769 entries
AaAaAaA
- Best score: 7
- Best player score: 13
- Number of attempts: 6
Wrap text in quotes - 322 entries
All the blocks of text should be wrapped in quotation marks.
- Best score: 16
- Best player score: 16
- Number of attempts: 4
Copy three lines - 2747 entries
If the site is up (by some miracle), make the text under every header identical.
- Best score: 13
- Best player score: 13
- Number of attempts: 10
Split line with dots - 2075 entries
This line is too long, split it.
- Best score: 15
- Best player score: 19
- Number of attempts: 3
One number per line - 18191 entries
Just give me the numbers.
- Best score: 14
- Best player score: 16
- Number of attempts: 8
Scrambled numbers - 769 entries
Four is NOT 1. One is 1.
- Best score: 18
- Best player score: 18
- Number of attempts: 7
Swap values - 4374 entries
Well, swap the values...
- Best score: 11
- Best player score: 11
- Number of attempts: 5
comments galore - 945 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Number of attempts: 2
Add to end of each line... kinda - 285 entries
Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?
- Best score: 12
- Best player score: 12
- Number of attempts: 1
Vice versa - 7385 entries
Little role switching.
- Best score: 12
- Best player score: 15
- Number of attempts: 3
Simple, Practical, and Common - 32662 entries
Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.
- Best score: 22
- Best player score: 22
- Number of attempts: 6
Collect List - 4138 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Number of attempts: 6
readability - 298 entries
Make the code readable by adding some spaces
- Best score: 18
- Best player score: 18
- Number of attempts: 2
Logging with key - 281 entries
Sometimes it is better to log with meaningful key
- Best score: 21
- Best player score: 21
- Number of attempts: 6
Space out the alphabet - 1520 entries
Put 3 spaces between adjacent letters.
- Best score: 15
- Best player score: 15
- Number of attempts: 9
Happy TvvO - 377 entries
Don’t forget the past, learn from it. Happy New Year.
- Best score: 12
- Best player score: 12
- Number of attempts: 1
Just the middle - 11073 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Number of attempts: 3
Condensed Cases - 729 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: 12
- Number of attempts: 6
I forgot quotes - 15632 entries
Oops.
- Best score: 10
- Best player score: 10
- Number of attempts: 7
Basic renumbering - 5393 entries
Renumbering Basic.
- Best score: 11
- Best player score: 20
- Number of attempts: 4
Gray area - 669 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 12
- Number of attempts: 4
That hyphen - 2457 entries
"vim vi improved"
- Best score: 9
- Best player score: 9
- Number of attempts: 4
Lisp Condense - 414 entries
Reduce 4 cons selection operations down to one function call.
- Best score: 13
- Best player score: 13
- Number of attempts: 3
Don't know what this is - 1905 entries
Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.
- Best score: 3
- Best player score: 11
- Number of attempts: 6
Shuffle puzzle - 302 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: 13
- Number of attempts: 6
Where should I put the Newline? - 830 entries
Help me put the newline.
- Best score: 7
- Best player score: 7
- Number of attempts: 2
Extract argument from function - 2176 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Number of attempts: 5
Mess in revision history - 1117 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 17
- Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10509 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Number of attempts: 3
Going underground.... - 303 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: 27
- Number of attempts: 5
Letter case trickery - 1515 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: 9
- Number of attempts: 5
Hole-in-one - 963 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: 16
- Number of attempts: 7
Words in parens - 12676 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Number of attempts: 4
Saving the hashes(#) - 1921 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: 21
- Number of attempts: 6
Swap assigned value - 525 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 10
- Number of attempts: 3
lamb had a little Mary - 538 entries
"Mary" and "lamb" are swapped. Unswap them. Fast as you can.
- Best score: 16
- Best player score: 16
- Number of attempts: 8
A simple change - 377 entries
Just change the numbers in the most efficient way ...
- Best score: 12
- Best player score: 12
- Number of attempts: 3
Let's play some Ivmgolf - 976 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 7
- Number of attempts: 3
Stairs Indenting - 387 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 12
- Number of attempts: 5
SFD-ROC: vimvimvim - 1441 entries
Oh no, this line is longer than 80 chars... put each 'vim' on a new line.
- Best score: 8
- Best player score: 8
- Number of attempts: 6
The name of the game - 597 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Number of attempts: 1
NATO phonetic alphabet - 438 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 19
- Number of attempts: 6
Switch function arguments - 1919 entries
How to switch two arguments of a function.
- Best score: 3
- Best player score: 11
- Number of attempts: 5
Remove noise from HTTP log - 631 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: 15
- Number of attempts: 2
Remove semicolons after expressions - 508 entries
A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.
- Best score: 6
- Best player score: 6
- Number of attempts: 2
Append semicolon after expressions - 899 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 11
- Number of attempts: 3
Reverse and double space - 424 entries
Reverse the order of the given lines and double space everything
- Best score: 14
- Best player score: 14
- Number of attempts: 4
The meaning - 515 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Number of attempts: 1
switch variable - 4863 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Number of attempts: 4
Replacing some words - 405 entries
How fast could it be?
- Best score: 17
- Best player score: 17
- Number of attempts: 8
Make it more readable - 1847 entries
Insert blank lines to make it more organized and readable
- Best score: 13
- Best player score: 13
- Number of attempts: 6
remove dupes from array - 1260 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: 17
- Number of attempts: 10
Interweave two blocks of text - 530 entries
Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?
- Best score: 15
- Best player score: 15
- Number of attempts: 5
Numbering a List - 1774 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 13
- Number of attempts: 9
imports alignment (python) - 586 entries
Align as one import per line.
- Best score: 17
- Best player score: 17
- Number of attempts: 9
Assignment Alignment - 722 entries
line up the operators. Use spaces, not tabs.
- Best score: 18
- Best player score: 18
- Number of attempts: 10
Shebangs for all - 1718 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: 11
- Number of attempts: 7
Make Fancy Header - 929 entries
Make the header text stand out with surrounding asterisks
- Best score: 16
- Best player score: 16
- Number of attempts: 4
The Cake is a Lie - 1168 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 9
- Number of attempts: 3
Ruby 1.9 compat - 566 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: 14
- Number of attempts: 6
Reverse characters in a line - 602 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: 13
- Number of attempts: 6
Search and Replace 0 - 4511 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Number of attempts: 4
Change the content of a string - 1270 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 22
- Number of attempts: 5
Wrap the text of an email message to 79 characters - 521 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 5
- Number of attempts: 2
Reconstruct the Sentence - 1042 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: 20
- Number of attempts: 5
Simple text editing with Vim - 11333 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 13
- Number of attempts: 3