Skip to content

Instantly share code, notes, and snippets.

@kvnxiao
Created April 11, 2022 21:13
Show Gist options
  • Save kvnxiao/890b8374843af87569ecf51b53b5f3e7 to your computer and use it in GitHub Desktop.
Save kvnxiao/890b8374843af87569ecf51b53b5f3e7 to your computer and use it in GitHub Desktop.
~/Library/KeyBindings/DefaultKeyBinding.dict
{
"\UF729" = "moveToBeginningOfLine:"; // home
"\UF72B" = "moveToEndOfLine:"; // end
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; // shift-home
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; // shift-end
"@\UF729" = "moveToBeginningOfDocument:"; // cmd-home
"@\UF72B" = "moveToEndOfDocument:"; // cmd-end
"@$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; // cmd-shift-home
"@$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; // cmd-shift-end
"@\UF702" = "moveWordLeft:"; // cmd-left
"@\UF703" = "moveWordRight:"; // cmd-right
"@$\UF702" = "moveWordLeftAndModifySelection:"; // cmd-shift-left
"@$\UF703" = "moveWordRightAndModifySelection:"; // cmd-shift-right
"@\U007F" = "deleteWordBackward:"; // cmd + backspace
"@\UF728" = "deleteWordForward:"; // cmd + delete
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment