End & Home Keys in OS X

I’ve recently moved from Windows 7 to OS X. I’m keeping my PC keyboard though and one of the most disturbing differences I’ve found between the two OSes is the lack of support for the Home and End keys. So here’s the fix:

  1. Create the following file, if the directories don’t exist on your system, create them.
  2. You’ll want to add the following bindings. You’ll need to logout and in to see the bindings take effect.
    Also note that these don’t work in terminal. There are other instructions online for that app, do some Googling.

        "\UF729"  = "moveToBeginningOfLine:";
        "\UF72B"  = "moveToEndOfLine:";
        "$\UF729" = "moveToBeginningOfLineAndModifySelection:";
        "$\UF72B" = "moveToEndOfLineAndModifySelection:";