mygoare
mygoare

Reputation: 315

bind ctrl-h to move left in vim under insert mode with vundle

i am from china, so may my english is poor.

i used to write

:map! <C-h> <Left> 
:map! <C-l> <Right>

in my .vimrc file to bind the ctrl-h to move left under insert mode and ctrl-l to move right. and they work well.

but after i use the vundle plugin to manage my plugin. the ctrl-h does not work now.It prefer to del and move left under insert mode, that is not my wish. but ctrl-l always work fine.

is there something wrong with ctrl-h , I think vundle affect it, or bind ctrl-h before me.

Upvotes: 3

Views: 1923

Answers (2)

Kent
Kent

Reputation: 195209

i have this mapping for the same goal. it works both in gvim, terminal (rxvt) and tty.

" move cursor in Insert Mode 
inoremap <C-h> <C-o>h
inoremap <C-j> <C-o>j
inoremap <C-k> <C-o>k
inoremap <C-l> <C-o>l

Upvotes: 1

mattn
mattn

Reputation: 7733

you can check what who define it before your.

:verbose map <C-h>
:verbose map <C-l>

Upvotes: 2

Related Questions