2

Had a quick question about having emacs-like word skipping in my terminal. I had set this up pre-upgrade to Lion and had ctrl-left & ctrl-right set to \033b & \033f respectively. Unfortunately post-upgrade ctrl-left & ctrl-right don't seem to be working any more.

I have seen this solution which makes alt-left & alt-right behave as above, but I was hoping to get ctrl-left & ctrl-right working as before and I was wondering if folks here had any solutions.

PS: As an aside this behavior is not working correctly in my VNC client as well - which it did previously.

2 Answers 2

1

Turns out that Mission Control(in Lion) has the same key combination to Move left a space and Move right a space - which I particularly don't have use for. Disabling this in Settings -> Keyboard Shortcuts did the trick for me.

0

⌃← and ⌃→ have moved a word left and right by default in Terminal since 10.7.

You can also change them in other applications by creating ~/Library/KeyBindings/ and saving this as DefaultKeyBinding.dict:

{
    "^\UF702" = moveWordLeft:;
    "^\UF703" = moveWordRight:;
}
2
  • I don't have a 'Library' under '~' and no 'KeyBindings' under '/Library' Commented Oct 4, 2012 at 18:09
  • 1
    ~/Library/ was hidden in 10.7, but you can open it from the go to folder sheet. There's no KeyBindings folder by default though.
    – Lri
    Commented Oct 4, 2012 at 18:39

You must log in to answer this question.

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