When I open a terminal in iTerm2, I can use the command key to make it work like Meta, so that I can for example move between words (e.g. with ⌘-f and ⌘-v.
However, as soon as I start a tmux session within the terminal (e.g. by typing tmux new
, for some reason these bindings don't work anymore, why? and how can I fix it?
Update
Below is a picture of my iTerm2 preferences:
xterm-keys
window option? Without it tmux will recognize^[[1;5D
as M-Left, but ifxterm-keys
is off it will transmit it as plain Left (i.e.^[[D
or^[OD
).