Played Challenges
V to the i - 4830 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 22
- Position: #1902 / 1903
- Number of attempts: 2
Add semicolons - 10916 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 10
- Position: #743 / 3085
- Number of attempts: 22
From argument to object - 1536 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 / 466
- Number of attempts: 19
Extract argument from function - 2376 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #264 / 759
- Number of attempts: 19
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: #150 / 328
- Number of attempts: 17
Just the middle - 11541 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Position: #1487 / 4230
- 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 - 407 entries
Remove the evens. Double the odds.
- Best score: 9
- Best player score: 13
- Position: #118 / 149
- Number of attempts: 9
One to Ten - 2241 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: #677 / 682
- Number of attempts: 7
VimGolf