iTerm2 Vim alt+right/left arrow
- by Ben Mezger
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;
It does work, but only for the ALTleft
How can I make it work for the right arrow too?