Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to remap ⇞, ⇟, ↖ and ↘ to work like on PC. This means: go to end of line / beginning of line or to end of document / beginning of document if pressed together with control. And the page up/down which is already kind of working should move the cursor like it does on PC.

I've gotten used to ⌃←/→ but still I switch between PC and Mac continously and would like to have the convience of those keys.

Is there a mapping file?

share|improve this question
up vote 0 down vote accepted

I've used DoubleCommand to remap keys successfully on Mac OS X 10.6 Snow Leopard on a MacBook Pro.

I remapped the lower-right Option key to become a Ctrl key (I'm an emacs user, and not having Ctrl keys on both sides is a serious pain).

share|improve this answer
Works fine but it does not allow remapping PgUp/PgDown to work like on the PC. Home/End are fine. Unfortunately if you use MS RDP and connect to Windows, neither the remapped Home/End keys work, nor the CMD+Arrow Right/Left. – Krumelur Jan 24 '11 at 9:07

You can change home and end by creating ~/Library/KeyBindings/ and save this as DefaultKeyBinding.dict:

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

@ = ⌘, $ = ⇧, \UF729 = ↖ , \UF72B = ↘, \UF72C = ⇞, \UF72D = ⇟

"\UF72D" = pageDown:; would also make page down move the caret, but pageDown: does not work in web views or iWork applications.

For more information, see the Cocoa Text System article, my website, or this post in the TextMate blog.

share|improve this answer
This is awesome -- thanks! – Joe Casadonte Mar 8 '13 at 15:42

There are a few other options as well: (which despite its name, works on all mac keyboards) (this is more for remapping keyboards for multilingual purposes, but it might still suit you)

share|improve this answer
Have you actually checked to see if it's possible? – Daniel Beck Jan 24 '11 at 6:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .