09th Nov 2013

Maybe my sanity will return . . .

My sincere thanks to Mr. Holt.  I sat down to do some serious writing on my Mac, instead of my work PC and kept stumbling into the idiotic behavior of the home and end keys.  This post provided the guidance I needed.  Yes!

For posterity sake, edit (or create) ~/Library/KeyBindings/DefaultKeyBindings.dict and add:

{
/* 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 */
}

Reboot and you’re done.

Leave a Reply

You must be logged in to post a comment.