Skip to content

Instantly share code, notes, and snippets.

@twoixter
Created October 14, 2013 22:49
Show Gist options
  • Save twoixter/6983569 to your computer and use it in GitHub Desktop.
Save twoixter/6983569 to your computer and use it in GitHub Desktop.
Fix the Home and End keys on Mac OS X
{
/* Put this file in ~/Library/KeyBindings/DefaultKeyBinding.dict */
/* Remap Home / End keys to be correct */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */
"\UF72C" = "pageUp:"; /* Page Up */
"\UF72D" = "pageDown:"; /* Page Down */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment