Played Challenges
Simple, Practical, and Common - 33100 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: 23
- Position: #2398 / 7301
- Number of attempts: 4
Swap values - 4500 entries
Well, swap the values...
- Best score: 11
- Best player score: 15
- Position: #852 / 1247
- Number of attempts: 1
One number per line - 18480 entries
Just give me the numbers.
- Best score: 14
- Best player score: 21
- Position: #2442 / 3811
- Number of attempts: 1
V to the i - 4650 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #27 / 1863
- Number of attempts: 2
Extract argument from function - 2267 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #45 / 736
- Number of attempts: 4
Search and Replace 0 - 4743 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #304 / 1572
- Number of attempts: 3
That hyphen - 2522 entries
"vim vi improved"
- Best score: 9
- Best player score: 11
- Position: #294 / 689
- Number of attempts: 3
Just the middle - 11283 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #1616 / 4140
- Number of attempts: 3
Create Leading Zeros - 205 entries
Create leading zeros only for id columns. Please use generic approach!
- Best score: 23
- Best player score: 26
- Position: #32 / 77
- Number of attempts: 2
Vice versa - 7627 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1126 / 2067
- Number of attempts: 2
Swap assigned value - 577 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #110 / 239
- Number of attempts: 1
I forgot quotes - 15840 entries
Oops.
- Best score: 10
- Best player score: 14
- Position: #1443 / 4133
- Number of attempts: 3
learn vim in short time - 222 entries
so happy to learn vim.because vim is awesome
- Best score: 8
- Best player score: 8
- Position: #30 / 153
- Number of attempts: 1
NBCU Weekly Challenge - Test - 239 entries
Just testing.
- Best score: 18
- Best player score: 18
- Position: #12 / 113
- Number of attempts: 2
Gray area - 712 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 12
- Position: #42 / 264
- Number of attempts: 2
Neither Fizz nor Buzz - 223 entries
Not your regular increment macro! The gaps are tricky.
- Best score: 13
- Best player score: 20
- Position: #43 / 98
- Number of attempts: 2
Do you demand a shrubbery? - 1107 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 16
- Position: #79 / 292
- Number of attempts: 4
Don't know what this is - 1959 entries
Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.
- Best score: 11
- Best player score: 12
- Position: #141 / 574
- Number of attempts: 4
Two become one - 706 entries
We have two c arrays and want to make one two dimensional out of it. Can we do that?
- Best score: 25
- Best player score: 28
- Position: #44 / 204
- Number of attempts: 2
Where should I put the Newline? - 852 entries
Help me put the newline.
- Best score: 7
- Best player score: 7
- Position: #41 / 426
- Number of attempts: 2
Mess in revision history - 1151 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 18
- Position: #70 / 244
- Number of attempts: 3
Split the words - 356 entries
Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.
- Best score: 18
- Best player score: 40
- Position: #67 / 108
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10564 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #211 / 3646
- Number of attempts: 3
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: #183 / 506
- Number of attempts: 1
quotes inside quotes - 3077 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: 15
- Position: #408 / 1057
- Number of attempts: 2
Words in parens - 12788 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #93 / 3930
- Number of attempts: 3
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: 19
- Position: #163 / 300
- Number of attempts: 2
Word frequency alignment - 258 entries
You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...
- Best score: 5
- Best player score: 5
- Position: #37 / 151
- Number of attempts: 1
Sort by sum of numbers in a line(?) - 53 entries
The lines with the biggest sums need to be at the top. The sums are on the right, which makes life hard. Maybe you can find a feature that will do all the work for you...
- Best score: 15
- Best player score: 16
- Position: #13 / 34
- Number of attempts: 1
SFD-ROC: The Quick Brown Fox - 165 entries
Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.
- Best score: 24
- Best player score: 28
- Position: #40 / 99
- Number of attempts: 3
The name of the game - 638 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Position: #38 / 350
- Number of attempts: 1
SFD-ROC: vimvimvim - 1531 entries
Oh no, this line is longer than 80 chars... put each 'vim' on a new line.
- Best score: 8
- Best player score: 14
- Position: #319 / 431
- Number of attempts: 1
Stairs Indenting - 440 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 14
- Position: #78 / 189
- Number of attempts: 1
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: #171 / 468
- Number of attempts: 3
Vertical Limit - 2389 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 28
- Position: #561 / 724
- Number of attempts: 1
Exchanging Quotes - 800 entries
Sometimes you need to exchange a choice of quotes in some code.
- Best score: 30
- Best player score: 39
- Position: #160 / 220
- Number of attempts: 1
replacing each line of a block selection - 2883 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 19
- Position: #164 / 756
- Number of attempts: 4
Switch function arguments - 2002 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 14
- Position: #415 / 634
- Number of attempts: 1
Append semicolon after expressions - 975 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 16
- Position: #371 / 394
- Number of attempts: 1
switch variable - 4993 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #203 / 1722
- Number of attempts: 2
Reverse Simple Deletion - 822 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #251 / 449
- Number of attempts: 1
Whitespace, empty lines and tabs - 3102 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 17
- Position: #82 / 688
- Number of attempts: 9
Simple text editing with Vim - 11862 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1207 / 3471
- Number of attempts: 2
Contributed Challenges
Aligning function arguments to match a specific coding style - 218 entries
Most projects have specific coding style guidelines. In this case, the argument list must be broken into a new line for each argument, with the argument names right aligned, taking into account pointers.