Played Challenges
Simple, Practical, and Common - 34033 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: #2459 / 7519
- Number of attempts: 4
Swap values - 4707 entries
Well, swap the values...
- Best score: 11
- Best player score: 15
- Position: #878 / 1294
- Number of attempts: 1
One number per line - 18909 entries
Just give me the numbers.
- Best score: 14
- Best player score: 21
- Position: #2494 / 3906
- Number of attempts: 1
V to the i - 4887 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #27 / 1916
- Number of attempts: 2
Extract argument from function - 2429 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #45 / 773
- Number of attempts: 4
Search and Replace 0 - 5167 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #304 / 1677
- Number of attempts: 3
That hyphen - 2649 entries
"vim vi improved"
- Best score: 9
- Best player score: 11
- Position: #304 / 712
- Number of attempts: 3
Just the middle - 11630 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #1645 / 4261
- Number of attempts: 3
Create Leading Zeros - 277 entries
Create leading zeros only for id columns. Please use generic approach!
- Best score: 23
- Best player score: 26
- Position: #38 / 89
- Number of attempts: 2
Vice versa - 8021 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1168 / 2158
- Number of attempts: 2
Swap assigned value - 696 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #122 / 264
- Number of attempts: 1
I forgot quotes - 16240 entries
Oops.
- Best score: 10
- Best player score: 14
- Position: #1479 / 4226
- Number of attempts: 3
learn vim in short time - 248 entries
so happy to learn vim.because vim is awesome
- Best score: 8
- Best player score: 8
- Position: #30 / 168
- Number of attempts: 1
NBCU Weekly Challenge - Test - 265 entries
Just testing.
- Best score: 18
- Best player score: 18
- Position: #12 / 121
- Number of attempts: 2
Gray area - 765 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 12
- Position: #45 / 277
- Number of attempts: 2
Neither Fizz nor Buzz - 271 entries
Not your regular increment macro! The gaps are tricky.
- Best score: 13
- Best player score: 20
- Position: #50 / 107
- Number of attempts: 2
Do you demand a shrubbery? - 1208 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 16
- Position: #81 / 310
- Number of attempts: 4
Don't know what this is - 2070 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: #150 / 596
- Number of attempts: 4
Two become one - 739 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: #46 / 213
- Number of attempts: 2
Where should I put the Newline? - 912 entries
Help me put the newline.
- Best score: 7
- Best player score: 7
- Position: #41 / 451
- Number of attempts: 2
Mess in revision history - 1238 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 18
- Position: #74 / 260
- Number of attempts: 3
Split the words - 399 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: #72 / 115
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10758 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #211 / 3717
- Number of attempts: 3
Letter case trickery - 1688 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: #194 / 526
- Number of attempts: 1
quotes inside quotes - 3203 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: #424 / 1094
- Number of attempts: 2
Words in parens - 13058 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #114 / 3993
- Number of attempts: 3
Hole-in-one - 1041 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: #170 / 308
- Number of attempts: 2
Word frequency alignment - 310 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 / 166
- Number of attempts: 1
Sort by sum of numbers in a line(?) - 75 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: #17 / 42
- Number of attempts: 1
SFD-ROC: The Quick Brown Fox - 212 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: #45 / 110
- Number of attempts: 3
The name of the game - 704 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Position: #38 / 372
- Number of attempts: 1
SFD-ROC: vimvimvim - 1643 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: #336 / 458
- Number of attempts: 1
Stairs Indenting - 503 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 14
- Position: #84 / 203
- Number of attempts: 1
Saving the hashes(#) - 2116 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: #180 / 488
- Number of attempts: 3
Vertical Limit - 2641 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 28
- Position: #601 / 780
- Number of attempts: 1
Exchanging Quotes - 878 entries
Sometimes you need to exchange a choice of quotes in some code.
- Best score: 30
- Best player score: 39
- Position: #168 / 234
- Number of attempts: 1
replacing each line of a block selection - 3069 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 19
- Position: #171 / 790
- Number of attempts: 4
Switch function arguments - 2237 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 14
- Position: #453 / 687
- Number of attempts: 1
Append semicolon after expressions - 1088 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 16
- Position: #402 / 427
- Number of attempts: 1
switch variable - 5131 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #203 / 1766
- Number of attempts: 2
Reverse Simple Deletion - 875 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #257 / 467
- Number of attempts: 1
Whitespace, empty lines and tabs - 4070 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 17
- Position: #111 / 868
- Number of attempts: 9
Simple text editing with Vim - 13667 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1304 / 3914
- Number of attempts: 2
Contributed Challenges
Aligning function arguments to match a specific coding style - 279 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.
VimGolf