Reputation: 14801
I'm trying to map ALT+m to Esc in Vim, to exit insert mode. I've tried with:
map <A-m> <Esc>
but it is not working as expected (i.e. it exits insert mode, but the next key pressed is ignored). That's because, apart from exiting insert mode, m
gets "pressed" or executed as well (i.e. if i remap ALT+j to Esc instead, then apart from exiting insert mode, it will jump to the next line).
Is there any way to map ALT+m to Esc in insert mode without having other side-effects? (avoiding to execute m
after exiting insert mode)
Using Fedora 21 (GNU/Linux distribution), with GNOME Terminal 3.14.3 and VIM - Vi IMproved 7.4.
Upvotes: 0
Views: 583