iTerm2 vim cannot map alt key
Posted
by
Eddy
on Super User
See other posts from Super User
or by Eddy
Published on 2012-12-10T16:54:39Z
Indexed on
2012/12/10
17:07 UTC
Read the original article
Hit count: 263
I'm having trouble trying to map the alt-key bindings on vim in iTerm2. I want to map shortcuts for switching between buffers like this:
map <A-Right> <C-w>l
map <A-Left> <C-w>h
map <A-Down> <C-w>j
map <A-Up> <C-w>k
But I can't get it to work. I've tried everything, setting the option key as "Normal", "Meta" and "+Esc" in the profile settings. I've tried <M-Right>
and <T-Right>
but those don't work either. There are posts on superuser and stackoverflow but they use the old version of iTerm2 (v0.x).
The only things I've managed to get working are <T-up>
and <T-down>
, or when I just use Macvim.
I'm using iTerm2 v1.0.0.20120203, and Mac OS X 10.7.5 on a Macbook Pro.
© Super User or respective owner