3 ms·
Lets see, for the simple text editing: qa/vim<ENTER>yypjddq@a@a so 18.
by Symmetry 16y ago
Lets see, for the simple text editing:
qa/vim<ENTER>yypjddq@a@a
so 18.
- Complete 16y agoqa/v<ENTER>yypjddq@a@a 16 :P
- Symmetry 16y agoqa/v<ENTER>yypJDq@a@a 15
- Xurinos 16y agoIf this contest also rated by finger distance (one of vim's strengths), I'd propose qq and @q@@ instead of using the "a" register.
- BrandonM 16y agoAgreed. I'm surprised by all the "qa"s I'm seeing. I've always used "qq" for quick macros and kind of assumed everyone else did as well. It's especially convenient considering that @ and q are right next to each other on a qwerty layout.
- burgerbrain 16y agoYeah, how does this prevent somebody from making a macro that does the entire file, then "completing" the file with the two* keystrokes it takes to fire off that macro? Or one, mapping space to @q is convenient :)
- BrandonM 16y agoqq3jYpJDq@q@@ 13 Edit: I can trim one more off, to make it 12: qq3jYpJDq2@q
- Complete 16y agoAwesome! You are currently the winner!
- BrandonM 16y agoTo be fair, I borrowed from a couple others here, but that was generally the approach I had in mind. Of course, we aren't genuinely doing what the author intended. The point was not to copy-paste the line, but actually to perform what would be rather typical edits. I also was rather lucky that the file happened to be structured such that "3j" put the cursor in the right place each time. It's also not clear whether or not the three times SHIFT must be pressed ("JD" = push and hold SHIFT = one press) should be counted as additional keystrokes. The contest would have been better with a "tee" file and a "hole" file, stipulating that edits should be performed on the former in order to produce the latter.
- jjcm 16y agoAs the scoring currently stands, it doesn't seem to count shift presses. It does count escapes though.