I've been learning Vim recently and I decided to put a few lines in my vimrc for quick navigation without having to leave normal mode, like so:
inoremap jk <esc>
inoremap <c-h> <esc>i
inoremap <c-l> <esc>la
inoremap <c-k> <esc>ka
inoremap <c-j> <esc>ja
This ended up breaking my backspace key so that in insert mode, it only moved back one space without deleting the character. After a bit of looking around, I found that the <c-h>
line was the culprit, due to it being connected somehow to backspace. Does this character combination represent the backspace key in all situations? Is there some way to map this without messing up backspace?