Played Challenges
Simple, Practical, and Common - 33385 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: 26
- Position: #3560 / 7364
- Number of attempts: 5
One number per line - 18616 entries
Just give me the numbers.
- Best score: 14
- Best player score: 22
- Position: #2689 / 3842
- Number of attempts: 1
multiple cursor alternative - 1474 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: 62
- Position: #373 / 376
- Number of attempts: 1
Number Sort - 305 entries
sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing
- Best score: 9
- Best player score: 9
- Position: #60 / 163
- Number of attempts: 5
comment and uncomment code inline - 1069 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: 9
- Position: #97 / 314
- Number of attempts: 9
Just the middle - 11360 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2635 / 4164
- Number of attempts: 7
Fiddle percentages into real numbers - 840 entries
Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.
- Best score: 13
- Best player score: 24
- Position: #276 / 287
- Number of attempts: 1
Vice versa - 7805 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1337 / 2101
- Number of attempts: 4
comments galore - 998 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #251 / 418
- Number of attempts: 5
Align commas - 1049 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: 16
- Position: #137 / 241
- Number of attempts: 6
I forgot quotes - 15931 entries
Oops.
- Best score: 10
- Best player score: 19
- Position: #3479 / 4161
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10628 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1253 / 3667
- Number of attempts: 6
quotes inside quotes - 3125 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: 16
- Position: #644 / 1072
- Number of attempts: 4
Vertical Limit - 2448 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 47
- Position: #729 / 738
- Number of attempts: 2
switch variable - 5036 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #504 / 1736
- Number of attempts: 6
Simple text editing with Vim - 12290 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 28
- Position: #3219 / 3581
- Number of attempts: 2