I'm trying to map a combination of left alt and return keys in my .vimrc, yet without success.
I've added all those mappings to my .vimrc file, with no effect:
map <M-esc> itest0<return><esc>
map <M-cr> itest1<return><esc>
map <M-return> itest2<return><esc>
map <M-enter> itest3<return><esc>
map <M-[> itest4<return><esc>
map ^[ itest5<return><esc>
Some info:
After pressing Ctrl+v and then Alt+return:
- in my terminal i get
^[
- in vim (and gvim) in insert mode i get
^[
- After calling
sed -n l
i get:
^[ \033$
I'm using terminator on Arch Linux. Behaviour described is identical no matter whether I use vim or gvim. What am I supposed to do?