Sublime Forum

Jump tp next nonempty line (with skipping of multiple nonempty line)

#1

Hi,

So I found this post that makes it possible to skip to next non-empty line:

with

// Jumping over blocks (to next empty line)
{“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}},
// With selecting
{“keys”: [“ctrl+shift+alt+up”], “command”: “move”, “args”: {“by”: “stops”, “empty_line”: true, “forward”: false, “extend”: true}},
{“keys”: [“ctrl+shift+alt+down”], “command”: “move”, “args”: {“by”: “stops”, “empty_line”: true, “forward”: true, “extend”: true}},

this is good, but when there are several nonempty lines, you have to skip each of them separately. There must be a way so that, when multiple empty lines, it will skip to the next nonempty line, no? Any suggestions?

0 Likes