Played Challenges
Simple, Practical, and Common - 32953 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: #3512 / 7275
- Number of attempts: 5
One number per line - 18395 entries
Just give me the numbers.
- Best score: 14
- Best player score: 22
- Position: #2654 / 3793
- Number of attempts: 1
multiple cursor alternative - 1447 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: #366 / 369
- Number of attempts: 1
Number Sort - 286 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 / 153
- Number of attempts: 5
comment and uncomment code inline - 995 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 / 296
- Number of attempts: 9
Just the middle - 11141 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2610 / 4114
- Number of attempts: 7
Fiddle percentages into real numbers - 798 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: #264 / 273
- Number of attempts: 1
Vice versa - 7535 entries
Little role switching.
- Best score: 12
- Best player score: 16
- Position: #1308 / 2048
- Number of attempts: 4
comments galore - 970 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #251 / 410
- Number of attempts: 5
Align commas - 1040 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: #133 / 236
- Number of attempts: 6
I forgot quotes - 15748 entries
Oops.
- Best score: 10
- Best player score: 19
- Position: #3440 / 4116
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10538 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1253 / 3638
- Number of attempts: 6
quotes inside quotes - 3030 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: #624 / 1045
- Number of attempts: 4
Vertical Limit - 2370 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 47
- Position: #710 / 718
- Number of attempts: 2
switch variable - 4944 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #504 / 1708
- Number of attempts: 6
Simple text editing with Vim - 11657 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 28
- Position: #3089 / 3418
- Number of attempts: 2