Skip to content

Instantly share code, notes, and snippets.

@vad710
Created November 30, 2021 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vad710/475f12fcbad0e944b3bfc98929a2f0c7 to your computer and use it in GitHub Desktop.
Save vad710/475f12fcbad0e944b3bfc98929a2f0c7 to your computer and use it in GitHub Desktop.
Keybindings to make Mac home/end work more like on PC. Put into the `~/Library/KeyBindings` directory then reboot.
{
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home
"^\UF72B" = moveToEndOfDocument:; // ctrl-end
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end
"^\UF702" = (moveWordLeft:); // ctrl-left
"^$\UF702" = (moveWordLeftAndModifySelection:); // ctrl-shift-left
"^\UF703" = (moveWordRight:); // ctrl-right
"^$\UF703" = (moveWordRightAndModifySelection:); // ctrl-shift-right
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment