iTerm2 Vim alt+right/left arrow

Posted by Ben Mezger on Super User See other posts from Super User or by Ben Mezger
Published on 2013-09-02T16:27:16Z Indexed on 2014/06/04 21:29 UTC
Read the original article Hit count: 235

Filed under:
|
|
|
|

As a Linux user, I am very used to jump from word to word in vim/nano using ALT+left or right.

This doesn't seem to work properly using iTerm, I am using zsh, I tried adding;

bindkey -e
bindkey '^[[1;9C' forward-word
bindkey '^[[1;9D' backward-word

It does work, but inside zsh only, then I commented those lines and added in iTerm a keyboard shortcut;

enter image description here

It does work, but only for the ALTleft

How can I make it work for the right arrow too?

© Super User or respective owner

Related posts about osx

Related posts about vim