How to remap escape sequences in ITerm2 (Mac OSX)?
<p>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 <code>⌥ ← to b</code>, and <code>⌥ → to f</code> (found here: <a href="https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x" rel="nofollow noreferrer">https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x</a>). However, it seems like VIM's skip words function responds not to the <code>b</code> and <code>f</code> escape sequences, but to <code>[1;5C</code> and <code>[1;5D</code> (found here: <a href="https://stackoverflow.com/a/9611698/800735">https://stackoverflow.com/a/9611698/800735</a>).</p>

<p>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 <code>b</code> and <code>f</code> to <code>[1;5C</code> and <code>[1;5D</code> in ITerm2, for some consistency. I know that its been done on XTerm by adding this to .Xresources: 
<code>
URxvt*keysym.Meta-f: \033[1;5C
URxvt*keysym.Meta-b: \033[1;5D
</code></p>

<p>Is there an equivalent in ITerm2?</p>

<p>Thanks</p>