Played Challenges
Simple, Practical, and Common - 33742 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: #3596 / 7447
- Number of attempts: 5
One number per line - 18776 entries
Just give me the numbers.
- Best score: 14
- Best player score: 22
- Position: #2708 / 3875
- Number of attempts: 1
multiple cursor alternative - 1521 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: #378 / 381
- Number of attempts: 1
Number Sort - 314 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 / 166
- Number of attempts: 5
comment and uncomment code inline - 1130 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 / 324
- Number of attempts: 9
Just the middle - 11495 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2642 / 4213
- Number of attempts: 7
Fiddle percentages into real numbers - 869 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: #280 / 293
- Number of attempts: 1
Vice versa - 7952 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1353 / 2139
- Number of attempts: 4
comments galore - 1048 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #251 / 425
- Number of attempts: 5
Align commas - 1097 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: #140 / 247
- Number of attempts: 6
I forgot quotes - 16038 entries
Oops.
- Best score: 10
- Best player score: 19
- Position: #3504 / 4192
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10688 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1253 / 3691
- Number of attempts: 6
quotes inside quotes - 3165 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: #647 / 1079
- Number of attempts: 4
Vertical Limit - 2552 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 47
- Position: #747 / 757
- Number of attempts: 2
switch variable - 5079 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #504 / 1749
- Number of attempts: 6
Simple text editing with Vim - 13012 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 28
- Position: #3356 / 3743
- Number of attempts: 2