Skip to content

Instantly share code, notes, and snippets.

@rwilcox
Created August 9, 2011 12:25
Show Gist options
  • Save rwilcox/1133908 to your computer and use it in GitHub Desktop.
Save rwilcox/1133908 to your computer and use it in GitHub Desktop.
Useful motion commands for Keymando (also, example of command, delete)
# Motion commands
map "<Alt-Delete>", "<Alt-Right><Alt-Delete>" # Delete entire current word
map "<Cmd-Alt-Delete>", "<Cmd-Right><Cmd-Delete>" # Delete entire current line
# Move the current line one line up, or one line down (switch this line with the line currently
# above or below it)
#
# See also: TextMate's Text -> Move Selection -> Line Up (or Line Down)
map "<Cmd-Ctrl-Up>", "<Cmd-Left><Shift-Cmd-Right><Cmd-x><Delete><Up><Return><Shift-Cmd-Left><Delete><Cmd-v>"
map "<Cmd-Ctrl-Down>", "<Cmd-Left><Shift-Cmd-Right><Cmd-x><Delete><Down><Cmd-Right><Return><Shift-Cmd-Left><Delete><Cmd-v>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment