Played Challenges
V to the i - 4813 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 22
- Position: #1896 / 1897
- Number of attempts: 2
Add semicolons - 10881 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 10
- Position: #743 / 3072
- Number of attempts: 22
From argument to object - 1513 entries
This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?
- Best score: 17
- Best player score: 17
- Position: #158 / 460
- Number of attempts: 19
Extract argument from function - 2364 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #264 / 755
- Number of attempts: 19
comment and uncomment code inline - 1124 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: #150 / 323
- Number of attempts: 17
Just the middle - 11483 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Position: #1487 / 4209
- Number of attempts: 7
Interweave two blocks of text - 661 entries
Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?
- Best score: 15
- Best player score: 15
- Position: #29 / 215
- Number of attempts: 18
Stairstep digits - 398 entries
Remove the evens. Double the odds.
- Best score: 9
- Best player score: 13
- Position: #117 / 146
- Number of attempts: 9
One to Ten - 2227 entries
Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2
- Best score: 12
- Best player score: 35
- Position: #672 / 677
- Number of attempts: 7