Played Challenges
Simple, Practical, and Common - 33703 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 / 7438
- Number of attempts: 2
Swap values - 4639 entries
Well, swap the values...
- Best score: 11
- Best player score: 12
- Position: #460 / 1273
- Number of attempts: 3
One number per line - 18751 entries
Just give me the numbers.
- Best score: 14
- Best player score: 16
- Position: #902 / 3869
- Number of attempts: 7
Swap values inside brackets - 2507 entries
Easy challenge.
- Best score: 13
- Best player score: 15
- Position: #145 / 582
- Number of attempts: 2
V to the i - 4813 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #1318 / 1897
- Number of attempts: 1
Applying same text modification in several lines - 2890 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 14
- Position: #313 / 855
- Number of attempts: 3
Com(m)a Trouble - 3853 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 14
- Position: #372 / 871
- Number of attempts: 3
multiple cursor alternative - 1521 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 / 381
- Number of attempts: 5
From argument to object - 1509 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 / 459
- Number of attempts: 3
Every other line - 2915 entries
AaAaAaA
- Best score: 12
- Best player score: 13
- Position: #234 / 704
- Number of attempts: 6
Extract argument from function - 2364 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #209 / 755
- Number of attempts: 3
Search and Replace 0 - 5002 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #533 / 1629
- 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 - 11477 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2722 / 4206
- Number of attempts: 2
Team names - 1841 entries
The team names are misspelled.
- Best score: 16
- Best player score: 16
- Position: #179 / 589
- 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 - 1000 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: #37 / 382
- Number of attempts: 3
Basic renumbering - 5675 entries
Renumbering Basic.
- Best score: 11
- Best player score: 11
- Position: #134 / 1268
- Number of attempts: 1
Adam's challenge - 987 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: #120 / 271
- Number of attempts: 3
Vice versa - 7933 entries
Little role switching.
- Best score: 12
- Best player score: 13
- Position: #807 / 2134
- Number of attempts: 5
Order and join - 985 entries
There's something special about the input order.
- Best score: 10
- Best player score: 11
- Position: #122 / 260
- Number of attempts: 2
Collect List - 4305 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #384 / 1191
- Number of attempts: 2
Condensed Cases - 804 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: #145 / 247
- Number of attempts: 3
I forgot quotes - 16014 entries
Oops.
- Best score: 10
- Best player score: 14
- Position: #1791 / 4188
- 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- - 3216 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 14
- Position: #374 / 1138
- Number of attempts: 3
Mess in revision history - 1184 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 18
- Position: #91 / 250
- Number of attempts: 5
quotes inside quotes - 3165 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 / 1079
- Number of attempts: 4
Words in parens - 12966 entries
We should all ace this, right?
- Best score: 13
- Best player score: 16
- Position: #2456 / 3968
- 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(#) - 2063 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 / 480
- Number of attempts: 7
Vertical Limit - 2540 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 22
- Position: #169 / 755
- Number of attempts: 8
switch variable - 5079 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 12
- Position: #946 / 1749
- Number of attempts: 4
remove dupes from array - 1358 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: #104 / 336
- Number of attempts: 2
Compile C - 430 entries
You might have to get clever to do this one.
- Best score: 19
- Best player score: 20
- Position: #29 / 141
- Number of attempts: 5
Make Fancy Header - 1059 entries
Make the header text stand out with surrounding asterisks
- Best score: 15
- Best player score: 17
- Position: #200 / 345
- Number of attempts: 1
Linear congruential generator - 142 entries
http://en.wikipedia.org/wiki/Linear_congruential_generator
- Best score: 28
- Best player score: 31
- Position: #35 / 53
- Number of attempts: 1
Change the content of a string - 1591 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 23
- Position: #305 / 593
- Number of attempts: 2
Sort and add attributes - 1475 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 33
- Position: #210 / 573
- Number of attempts: 3
Reconstruct the Sentence - 1575 entries
Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.
- Best score: 19
- Best player score: 21
- Position: #237 / 423
- Number of attempts: 6
Whitespace, empty lines and tabs - 3727 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 17
- Position: #132 / 800
- Number of attempts: 9
Simple text editing with Vim - 12929 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1697 / 3723
- Number of attempts: 3
Reformat/Refactor a Golfer Class - 7099 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 36
- Position: #476 / 1741
- Number of attempts: 1