I'm trying to remap Control + [hjkl] to navigate among splits, by setting this in my rc file:
" splits navigation nnoremap <C-h> <C-w>h nnoremap <C-j> <C-w>j nnoremap <C-k> <C-w>k nnoremap <C-l> <C-w>l
<C-h> isn't working; it moves the cursor left a character, as if I had hit backspace (i.e. it traverses lines, unlike my
h). The other movements work.
Asking (neo)vim for mapping information about
<C-h> doesn't show anything suspicious looking:
:verbose map <C-h> n <C-H> <C-W>h Last set from ~/workspace/dotfiles/.nvimrc
However, if I ask about
<C-j> (which works as expected), it says that
<NL> is involved?
:verbose map <C-j> n <NL> <C-W>j Last set from ~/workspace/dotfiles/.nvimrc
Changing the order of my
nnoremaps doesn't seem to change the behavior.
How should I debug this?