Played Challenges
Simple, Practical, and Common - 33700 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: 29
- Position: #4677 / 7436
- Number of attempts: 1
V to the i - 4813 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #439 / 1897
- Number of attempts: 1
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: 11
- Position: #223 / 323
- Number of attempts: 1
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 67 entries
I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful. Well, or a few vim keystroke!
- Best score: 18
- Best player score: 18
- Position: #12 / 39
- Number of attempts: 1
Vice versa - 7933 entries
Little role switching.
- Best score: 12
- Best player score: 14
- Position: #917 / 2134
- Number of attempts: 3
7th Birthday - 202 entries
We have a bunch of numbers written from 0 to 9 in the order present in the text input file. The task is to create 7 by replacing the numbers with dashes.
- Best score: 19
- Best player score: 22
- Position: #30 / 75
- Number of attempts: 1
Collect List - 4305 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #271 / 1191
- Number of attempts: 1
-a-b-c- - 3216 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 14
- Position: #355 / 1138
- Number of attempts: 2
Reformat/Refactor a Golfer Class - 7093 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 39
- Position: #751 / 1739
- Number of attempts: 3