Vim quit insert mode when navigate with mapping keys
Posted
by
zdd
on Super User
See other posts from Super User
or by zdd
Published on 2013-06-26T08:18:44Z
Indexed on
2013/06/26
10:23 UTC
Read the original article
Hit count: 230
vim
In order to move the cursor in insert mode, I add the following key maps in my .vimrc(I use vim 7.3 on Sun OS)
inoremap <Alt-h> <Left>
inoremap <Alt-j> <Down>
inoremap <Alt-k> <Up>
inoremap <Alt-l> <Right>
When I press the mapping keys, the cursor moves correct, but vim will quit insert mode and switch to normal mode, what's wrong with my vim? I also tried this with my gvim on Windows, it works well. Did I lost any options for the mapping keys?
© Super User or respective owner