Played Challenges
Simple, Practical, and Common - 33535 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
- Position: #1467 / 7397
- Number of attempts: 2
Swap values - 4606 entries
Well, swap the values...
- Best score: 11
- Best player score: 12
- Position: #459 / 1265
- Number of attempts: 3
One number per line - 18705 entries
Just give me the numbers.
- Best score: 14
- Best player score: 16
- Position: #900 / 3855
- Number of attempts: 7
Swap values inside brackets - 2480 entries
Easy challenge.
- Best score: 14
- Best player score: 15
- Position: #143 / 575
- Number of attempts: 2
V to the i - 4796 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #1315 / 1891
- Number of attempts: 1
Applying same text modification in several lines - 2859 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 14
- Position: #307 / 845
- Number of attempts: 3
Com(m)a Trouble - 3780 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 14
- Position: #365 / 855
- Number of attempts: 3
multiple cursor alternative - 1519 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
- Position: #155 / 380
- Number of attempts: 5
From argument to object - 1503 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: 18
- Position: #241 / 455
- Number of attempts: 3
Every other line - 2910 entries
AaAaAaA
- Best score: 12
- Best player score: 13
- Position: #234 / 703
- Number of attempts: 6
Extract argument from function - 2354 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #209 / 751
- Number of attempts: 3
Search and Replace 0 - 4952 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #533 / 1615
- Number of attempts: 4
That hyphen - 2595 entries
"vim vi improved"
- Best score: 9
- Best player score: 10
- Position: #248 / 701
- Number of attempts: 4
Just the middle - 11417 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2720 / 4181
- Number of attempts: 2
Team names - 1834 entries
The team names are misspelled.
- Best score: 16
- Best player score: 16
- Position: #179 / 587
- Number of attempts: 2
Learn some german verbs - 533 entries
The list needs to be structured so we can print in verbatim and feel ok about how it looks.
- Best score: 21
- Best player score: 32
- Position: #114 / 133
- Number of attempts: 2
Python Hello World! Reformatting - 989 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: 40
- Position: #36 / 379
- Number of attempts: 3
Basic renumbering - 5643 entries
Renumbering Basic.
- Best score: 11
- Best player score: 11
- Position: #134 / 1261
- Number of attempts: 1
Adam's challenge - 978 entries
Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.
- Best score: 18
- Best player score: 19
- Position: #119 / 268
- Number of attempts: 3
Vice versa - 7891 entries
Little role switching.
- Best score: 12
- Best player score: 13
- Position: #804 / 2121
- Number of attempts: 5
Order and join - 983 entries
There's something special about the input order.
- Best score: 10
- Best player score: 11
- Position: #122 / 259
- Number of attempts: 2
Collect List - 4298 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #384 / 1190
- Number of attempts: 2
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: 14
- Position: #144 / 245
- Number of attempts: 3
I forgot quotes - 15954 entries
Oops.
- Best score: 10
- Best player score: 14
- Position: #1786 / 4170
- Number of attempts: 3
Subtraction - 180 entries
Solve the equations.
- Best score: 18
- Best player score: 36
- Position: #57 / 62
- Number of attempts: 1
-a-b-c- - 3213 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 14
- Position: #374 / 1137
- Number of attempts: 3
Mess in revision history - 1183 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 18
- Position: #91 / 249
- Number of attempts: 5
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: 14
- Position: #302 / 1075
- Number of attempts: 4
Words in parens - 12918 entries
We should all ace this, right?
- Best score: 13
- Best player score: 16
- Position: #2448 / 3957
- Number of attempts: 4
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: 9
- Position: #239 / 446
- Number of attempts: 7
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: 21
- Position: #118 / 478
- Number of attempts: 7
Vertical Limit - 2522 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 22
- Position: #168 / 751
- Number of attempts: 8
switch variable - 5061 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 12
- Position: #943 / 1743
- Number of attempts: 4
remove dupes from array - 1347 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: #103 / 334
- Number of attempts: 2
Compile C - 398 entries
You might have to get clever to do this one.
- Best score: 19
- Best player score: 20
- Position: #28 / 136
- Number of attempts: 5
Make Fancy Header - 1045 entries
Make the header text stand out with surrounding asterisks
- Best score: 15
- Best player score: 17
- Position: #199 / 342
- Number of attempts: 1
Linear congruential generator - 137 entries
http://en.wikipedia.org/wiki/Linear_congruential_generator
- Best score: 28
- Best player score: 31
- Position: #34 / 52
- Number of attempts: 1
Change the content of a string - 1541 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 23
- Position: #296 / 577
- Number of attempts: 2
Sort and add attributes - 1418 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 33
- Position: #210 / 551
- Number of attempts: 3
Reconstruct the Sentence - 1467 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: #226 / 403
- Number of attempts: 6
Whitespace, empty lines and tabs - 3568 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 17
- Position: #128 / 770
- Number of attempts: 9
Simple text editing with Vim - 12627 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1680 / 3653
- Number of attempts: 3
Reformat/Refactor a Golfer Class - 6825 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 36
- Position: #469 / 1673
- Number of attempts: 1