News for hackers. Stuff that matters.
Re:Vim GIFs by Veedrac on Tuesday July 19, 2016 @11:05PM (#12126587)
FYI, took me like 20 in Sublime Text.

1. Select lines. Shift-Ctrl-End, Alt-l, Home.

2. Type up to the first quote.

3. Move 3 words along. Ctrl-Right, Ctrl-Right, Ctrl-Right.

4. Second quote, comma.

5. Go to start of next word. Ctrl-Right, Ctrl-Left. It's also easy to normalize spacing at this point if you just hold shift then press space.

6. Type "StatusType."

7. Press End, type ");".

Most of the time was spent in point 2.

Admittedly Alt-l isn't OS-native, but multiple cursors are so useful that you kind'a learn to assume them.

There are no comments on this comment yet.