I'm trying to map Alt key in the following way:
:map <A-j> j
:map <A-k> k
but it doesn't work (bell is rang on Alt + j/Alt + k).
What am I missing?
I'm using Terminal on OSX, the same happens on remote Linux.
On Ctrl + v, Alt + j, I've got: ?~H~F
(∆
when encoding=utf-8
).
On Ctrl + v, Alt + k, I've got: ?~Z
(˚
when encoding=utf-8
).
Running vim without plugins (-u NONE
) doesn't make any difference.
Alt
(press, not hold) and thenj
work? Withxterm
at least I need to setmetaSendsEscape
totrue
to get these sequences to work... I don't know if you have the same problem, and I don't use OSX so I can't test... – Martin Tournoij Mar 3 '15 at 23:16Alt
, release, thenj
or any other key works as normal. I've checked and found the option 'Use option as meta key', enabled it and it works now. So settingmetaSendsEscape
did the trick, thanks. – kenorb Mar 3 '15 at 23:41