Fix 'Home' and 'End' keys on non-Cocoa applications

Solution 1:

You can do this with Karabiner's 'Use PC Style Home/End #2'.
This remaps Home and End to ⌘← and ⌘→ respectively.

Solution 2:

Karabina is now Karabina-Elements. Download it and go to Complex Modifications:

enter image description here

Click Add Rule:

enter image description here

Click Import More Rules from the Internet, and select PC-Style Shortcuts:

enter image description here

Open the link with Karabina-Elements and click Import:

enter image description here

Enable these options (may as well make print screen work):

enter image description here

There is another option to use Ctrl+a and Ctrl+e for the terminal but I already fixed that like this (home/end are the diagonal arrows):

enter image description here

I also added the ctrl/shift-up/down shortcuts in there because for some insane reason Apple doesn't include them by default.

Solution 3:

I have the wired keyboard for my iMac. All I have to do is hit the down arrow and it takes me to the end of the line I that my cursor is on. It works exactly like the "end" key on my old windows computers.