I am using ITerm2 on Mac OSX, and I am trying to get the "skip words" hotkey (alt left, alt right) to work. On ITerm2, this is done by mapping ⌥ ← to b
, and ⌥ → to f
(found here: https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x). However, it seems like VIM's skip words function responds not to the b
and f
escape sequences, but to [1;5C
and [1;5D
(found here: https://stackoverflow.com/a/9611698/800735).
So it seems like I need a different set of hotkeys to skip words on VIM, and another set on Iterm2. What I would like to do is remap the escape sequences b
and f
to [1;5C
and [1;5D
in ITerm2, for some consistency. I know that its been done on XTerm by adding this to .Xresources:
URxvt*keysym.Meta-f: \033[1;5C
URxvt*keysym.Meta-b: \033[1;5D
Is there an equivalent in ITerm2?
Thanks