Played Challenges
simple replacements - 1753 entries
The goal is to see the replacement commands in action.
- Best score: 19
- Best player score: 22
- Position: #169 / 380
- Number of attempts: 7
Making 3 line function a one liner. - 328 entries
Simple challenge for frequent action while programming.
- Best score: 4
- Best player score: 4
- Position: #68 / 205
- Number of attempts: 1
Python: Def to Lambda - 455 entries
LAMBDA!!!
- Best score: 19
- Best player score: 21
- Position: #112 / 156
- Number of attempts: 2
Add quotes to ansible playbook - 954 entries
You created an ansible playbook, but forgot to add quotes. Can you fix it?
- Best score: 8
- Best player score: 10
- Position: #237 / 305
- Number of attempts: 1
Simple, Practical, and Common - 33617 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: #2785 / 7421
- Number of attempts: 5
prepend * to every non-blank line - 6312 entries
Prepend an asterisk to every non-blank line in the input file.
- Best score: 10
- Best player score: 11
- Position: #644 / 1537
- Number of attempts: 5
Swap values inside brackets - 2496 entries
Easy challenge.
- Best score: 14
- Best player score: 17
- Position: #279 / 579
- Number of attempts: 4
Array propagate - 338 entries
Complete the array with the keys as part of the value
- Best score: 23
- Best player score: 36
- Position: #99 / 119
- Number of attempts: 1
comment and uncomment code inline - 1122 entries
It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.
- Best score: 9
- Best player score: 10
- Position: #189 / 322
- Number of attempts: 5
Just the middle - 11454 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2688 / 4197
- Number of attempts: 1
Make HTML List - 1050 entries
Turn the comma separated list into an unordered html list.
- Best score: 33
- Best player score: 55
- Position: #248 / 273
- Number of attempts: 1
Remember VimGolf Rules ! - 261 entries
Rules, ... and don't forget !
- Best score: 7
- Best player score: 8
- Position: #96 / 141
- Number of attempts: 2
Simple addition - 326 entries
The right side of the equation is already there. We just need the left one now.
- Best score: 12
- Best player score: 13
- Position: #71 / 122
- Number of attempts: 4
Adam's challenge - 984 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: 23
- Position: #220 / 270
- Number of attempts: 4
Wrap text in quotes - 368 entries
All the blocks of text should be wrapped in quotation marks.
- Best score: 16
- Best player score: 23
- Position: #106 / 122
- Number of attempts: 2
comments galore - 1045 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #254 / 424
- Number of attempts: 5
Align commas - 1095 entries
There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.
- Best score: 11
- Best player score: 19
- Position: #211 / 246
- Number of attempts: 3
From A to B - 591 entries
Mirror and change this text block
- Best score: 16
- Best player score: 16
- Position: #47 / 159
- Number of attempts: 5
I forgot quotes - 15983 entries
Oops.
- Best score: 10
- Best player score: 14
- Position: #1772 / 4180
- Number of attempts: 7
Two become one - 713 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: #71 / 208
- Number of attempts: 3
Letter case trickery - 1630 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: 12
- Position: #357 / 518
- Number of attempts: 2
Unwrap the text of an email message - 192 entries
Reverse of "Wrap the text of an email message to 79 characters". gq and gw are great for wrapping paragraphs. But sometimes other programs choke on your wrapped lines. What's the best way to un-gq?
- Best score: 16
- Best player score: 26
- Position: #64 / 75
- Number of attempts: 2
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: 25
- Position: #185 / 480
- Number of attempts: 4
Vertical Limit - 2538 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 23
- Position: #246 / 754
- Number of attempts: 3
Switch function arguments - 2139 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 12
- Position: #307 / 663
- Number of attempts: 4
switch variable - 5071 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 13
- Position: #1220 / 1748
- Number of attempts: 2
The Universal Declaration of Human Rights, Article 1 - 163 entries
Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)
- Best score: 24
- Best player score: 24
- Position: #20 / 71
- Number of attempts: 2