Skip to content

Instantly share code, notes, and snippets.

@jawwad
Last active March 21, 2019 21:58
Show Gist options
  • Save jawwad/4461d8a27747b8561bc758b119b1e967 to your computer and use it in GitHub Desktop.
Save jawwad/4461d8a27747b8561bc758b119b1e967 to your computer and use it in GitHub Desktop.
/* ~/Library/KeyBindings/DefaultKeyBinding.dict */
// curl -o 'https://gist.githubusercontent.com/jawwad/4461d8a27747b8561bc758b119b1e967/raw' -o ~/Library/KeyBindings/DefaultKeyBinding.dict
// wget 'https://gist.githubusercontent.com/jawwad/4461d8a27747b8561bc758b119b1e967/raw' -O ~/Library/KeyBindings/DefaultKeyBinding.dict
// quit app for change to take effect
{
"~f" = "moveWordForward:";
"~b" = "moveWordBackward:";
"~d" = "deleteWordForward:";
"~F" = "moveWordRightAndModifySelection:"; /* ~$f or $~f doesn't work */
"~B" = "moveWordLeftAndModifySelection:";
"~<" = "moveToBeginningOfDocument:";
"~>" = "moveToEndOfDocument:";
"~v" = "pageUp:";
"^\UF702" = "moveSubWordLeft:"; // control-left
"^\UF703" = "moveSubWordRight:"; // control-right
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment