Re:Show HN: Tiled Text – a Different Approach to Editing Text
by lobster_johnson on Friday March 01, 2013 @05:31PM
(#5307373)
Very nice, I'm copying that one! You don't actually have to use macros for that. This will suffice (in your .sublime-keymap):
{"keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false}},
{"keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true}},
{"keys": ["shift+alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}},
{"keys": ["shift+alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}},
(Changed it to alt instead of ctrl because that's how I like it.)
Talking of contiguous lines. I like macros of the following form for quickly hopping around vertically in a file: