vim-utils/vim-alt-mappings

Not quite working in terminal vim

pablox-cl opened this issue · 2 comments

I know this has many gotchas, but I found that to use alt mappings in terminal vim, I have to use \e instead of \<Esc>

-exe "set <M-".a:char.">=\<Esc>".a:char
+exe "set <M-".a:char.">=\e".a:char

I dunno why though O.o

That's interesting, thanks for reporting.. where did you learn about \e?

Hmmm, I'm not sure... I think I read it on a vimtip or StackOverflow. But I can't find the source right now. Anyway, I'm quite sure I didn't found this when trying to use meta mappings... but when I was trying to configure <S-F1>.