Played Challenges
V to the i - 4848 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 22
- Position: #1906 / 1907
- Number of attempts: 2
Add semicolons - 10932 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 10
- Position: #743 / 3091
- Number of attempts: 22
From argument to object - 1552 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 / 469
- Number of attempts: 19
Extract argument from function - 2392 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #264 / 765
- Number of attempts: 19
comment and uncomment code inline - 1158 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 / 329
- Number of attempts: 17
Just the middle - 11572 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Position: #1487 / 4240
- 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 - 410 entries
Remove the evens. Double the odds.
- Best score: 9
- Best player score: 13
- Position: #119 / 150
- Number of attempts: 9
One to Ten - 2246 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: #679 / 684
- Number of attempts: 7
VimGolf