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 Answers2

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:;
}
Lri
  • 105,117