I have a map which allows me to navigate with hjkl in insert mode:
" In insert or command mode, move normally by using Ctrl
inoremap <C-h> <Left>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C-l> <Right>
cnoremap <C-h> <Left>
cnoremap <C-j> <Down>
cnoremap <C-k> <Up>
cnoremap <C-l> <Right>
All maps works, except <c-h>
. In insert mode, when a I press <c-h>
, backspace occours.
I know that ^H
is the ASCII for backspace, but I would like to know if there's some way to make my <c-h>
works as <left>
.
When I run: :verbose inoremap <c-h>
it returns
i <C-H> *@<C-R>=AutoPairsDelete()<CR> │ost/site/content/themes/sc5
Last set from ~/.vim/plugged/auto-pairs/plugin/auto-pairs.vim line 549 │0k/gulpfile.js
i <C-H> * <Left> │[10:29:37] Starting 'watch'
Last set from ~/.dotfiles/nvim/init.vim line 264
A courious thing is that in command mode
, <c-h>
works fine!
I'm using iTerm2 in MacOS Catalina with tmux and neovim.