Played Challenges
Simple, Practical, and Common - 33801 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: #3600 / 7459
- Number of attempts: 5
One number per line - 18811 entries
Just give me the numbers.
- Best score: 14
- Best player score: 22
- Position: #2713 / 3883
- Number of attempts: 1
multiple cursor alternative - 1547 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: #382 / 385
- Number of attempts: 1
Number Sort - 319 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 / 170
- Number of attempts: 5
comment and uncomment code inline - 1151 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 / 328
- Number of attempts: 9
Just the middle - 11523 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2644 / 4222
- Number of attempts: 7
Fiddle percentages into real numbers - 873 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: #281 / 294
- Number of attempts: 1
Vice versa - 7971 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1355 / 2145
- Number of attempts: 4
comments galore - 1073 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #251 / 429
- 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 - 16075 entries
Oops.
- Best score: 10
- Best player score: 19
- Position: #3510 / 4198
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10703 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1253 / 3696
- Number of attempts: 6
quotes inside quotes - 3182 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: #649 / 1085
- Number of attempts: 4
Vertical Limit - 2576 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 47
- Position: #752 / 762
- Number of attempts: 2
switch variable - 5089 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #504 / 1751
- Number of attempts: 6
Simple text editing with Vim - 13183 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 28
- Position: #3392 / 3789
- Number of attempts: 2