Skip to content

Instantly share code, notes, and snippets.

@kurtbartholomew
Last active August 29, 2015 14:15
Show Gist options
  • Save kurtbartholomew/6322d3726165da4ec1dd to your computer and use it in GitHub Desktop.
Save kurtbartholomew/6322d3726165da4ec1dd to your computer and use it in GitHub Desktop.
Move Up/Down to next open line macro for Sublime
/* Move to the next open line up or down (made to emulate line empty line jumping in Vim/Emacs).
Open keybindings via Preferences -> Key Bindings - User and past in between the [] brackets. */
{
"keys": ["ctrl+up"],
"command": "move",
"args": {"by": "stops", "empty_line": true, "forward": false}
},
{
"keys": ["ctrl+down"],
"command": "move",
"args": {"by": "stops", "empty_line": true, "forward": true}
}
/* Paste in the following as well if you would like to select between paragraphs/empty lines.
You may want to change all the bindings to use alt if its easier for you.
{
"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}
},
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment