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

Option-Delete will remove the word to the left of the cursor.

Is it possible to remap this behavior to Control-Delete or Control-W?

For extra credit... is it feasible to remap CTRL-Left/Right Arrow to do the same thing as Option-Left/Right Arrow, i.e. to jump words?

I'm running Mac OS X Lion 10.7.2.

share|improve this question
up vote 2 down vote accepted

Make ~/Library/Keybindings/ and save something like this as DefaultKeyBinding.dict:

{
    "^\U007F" = deleteWordBackward:; // ctrl-delete (forward delete would be ^\UF728)
    "^\UF702" = moveWordBackward:; // ctrl-left
    "^\UF703" = moveWordForward:; // ctrl-right
}

The changes will be applied after you reopen applications. DefaultKeyBinding.dict is not supported by some cross-platform applications, Xcode, or Terminal.

More information: hcs.harvard.edu/~jrus/Site/cocoa-text.html

share|improve this answer

You must log in to answer this question.

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