Played Challenges
Simple, Practical, and Common - 33972 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: #2456 / 7505
- Number of attempts: 4
Swap values - 4703 entries
Well, swap the values...
- Best score: 11
- Best player score: 15
- Position: #876 / 1291
- Number of attempts: 1
One number per line - 18894 entries
Just give me the numbers.
- Best score: 14
- Best player score: 21
- Position: #2492 / 3901
- Number of attempts: 1
V to the i - 4861 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #27 / 1911
- Number of attempts: 2
Extract argument from function - 2401 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #45 / 768
- Number of attempts: 4
Search and Replace 0 - 5124 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #304 / 1670
- Number of attempts: 3
That hyphen - 2624 entries
"vim vi improved"
- Best score: 9
- Best player score: 11
- Position: #301 / 708
- Number of attempts: 3
Just the middle - 11611 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #1642 / 4252
- Number of attempts: 3
Create Leading Zeros - 269 entries
Create leading zeros only for id columns. Please use generic approach!
- Best score: 23
- Best player score: 26
- Position: #37 / 86
- Number of attempts: 2
Vice versa - 8011 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1166 / 2153
- Number of attempts: 2
Swap assigned value - 681 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 11
- Position: #122 / 262
- Number of attempts: 1
I forgot quotes - 16185 entries
Oops.
- Best score: 10
- Best player score: 14
- Position: #1476 / 4221
- Number of attempts: 3
learn vim in short time - 245 entries
so happy to learn vim.because vim is awesome
- Best score: 8
- Best player score: 8
- Position: #30 / 165
- Number of attempts: 1
NBCU Weekly Challenge - Test - 262 entries
Just testing.
- Best score: 18
- Best player score: 18
- Position: #12 / 119
- Number of attempts: 2
Gray area - 754 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 12
- Position: #45 / 273
- Number of attempts: 2
Neither Fizz nor Buzz - 270 entries
Not your regular increment macro! The gaps are tricky.
- Best score: 13
- Best player score: 20
- Position: #49 / 106
- Number of attempts: 2
Do you demand a shrubbery? - 1185 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 16
- Position: #81 / 306
- Number of attempts: 4
Don't know what this is - 2044 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: #149 / 591
- Number of attempts: 4
Two become one - 736 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 / 212
- Number of attempts: 2
Where should I put the Newline? - 898 entries
Help me put the newline.
- Best score: 7
- Best player score: 7
- Position: #41 / 446
- Number of attempts: 2
Mess in revision history - 1228 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 18
- Position: #74 / 256
- Number of attempts: 3
Split the words - 394 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: #71 / 113
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10749 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #211 / 3712
- Number of attempts: 3
Letter case trickery - 1664 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: #191 / 523
- Number of attempts: 1
quotes inside quotes - 3200 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: #422 / 1091
- Number of attempts: 2
Words in parens - 13033 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #112 / 3987
- Number of attempts: 3
Hole-in-one - 1040 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: #169 / 307
- Number of attempts: 2
Word frequency alignment - 302 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 / 164
- Number of attempts: 1
Sort by sum of numbers in a line(?) - 71 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: #16 / 40
- 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 - 682 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Position: #38 / 366
- Number of attempts: 1
SFD-ROC: vimvimvim - 1641 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: #334 / 456
- Number of attempts: 1
Stairs Indenting - 483 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 14
- Position: #82 / 200
- Number of attempts: 1
Saving the hashes(#) - 2115 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: #179 / 487
- Number of attempts: 3
Vertical Limit - 2634 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 28
- Position: #599 / 776
- Number of attempts: 1
Exchanging Quotes - 877 entries
Sometimes you need to exchange a choice of quotes in some code.
- Best score: 30
- Best player score: 39
- Position: #168 / 233
- Number of attempts: 1
replacing each line of a block selection - 3050 entries
replace each line's ../assets/js with /javascripts
- Best score: 18
- Best player score: 19
- Position: #171 / 787
- Number of attempts: 4
Switch function arguments - 2204 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 14
- Position: #448 / 681
- Number of attempts: 1
Append semicolon after expressions - 1071 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 16
- Position: #400 / 425
- Number of attempts: 1
switch variable - 5120 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #203 / 1761
- Number of attempts: 2
Reverse Simple Deletion - 865 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #255 / 464
- Number of attempts: 1
Whitespace, empty lines and tabs - 4006 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 17
- Position: #108 / 855
- Number of attempts: 9
Simple text editing with Vim - 13564 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 14
- Position: #1295 / 3887
- 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