enure » post

key bindings in mac os x. set shift delete to delete forward system-wide (ala BBEdit)

maybe you recently moved over to using Textmate, and you really can't get used to shift-delete not deleting forward.

  1. mkdir ~/Library/Keybindings
  2. mate DefaultKeyBinding.dict
/* ~/Library/KeyBindings/DefaultKeyBinding.dict */
{
"$\010" ="deleteForward:"; /* Shift-backspace */
"$\177" = "deleteForward:" /* Shift-delete */
"^=" = "moveToEndOfLine:" /* move to end of line */
"^-" = "moveToBeginningOfLine:" /* move to begining of line */
}

then reboot. (is this necessary? i'm not entirely sure.)

note these keybindings did not work on my work computer, a desktop G5 with, of course, a different keyboard. i found these codes, which were diff. than i found elsewhere, from someone setting up keybindings to match vi.

* * *

search

Or, see a list of articles