1

I'm remapping <C-[hjkl]> to be used for navigating between window splits. <C-[jkl]> are all working as expected. <C-h> is not working, and I cannot figure out why.

Here is how I'm mapping them:

:nnoremap <C-h> <C-w>h
:nnoremap <C-j> <C-w>j
:nnoremap <C-k> <C-w>k
:nnoremap <C-l> <C-w>l

When I run verbose nnoremap <C-h> I see

n  <C-H>       * <C-W>h                                                                                                                                                                                                                       
        Last set from ~/.nvimrc

EDIT: Turns out this issue is specific to Neovim. If you come across this question and are working with vim, it won't apply to you.

4

1 回答 1

2

大概就是这个问题。您可以尝试以下

kbs=\177在终端的 terminfo/termcap 中设置:

infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti

资源

于 2015-10-02T15:27:43.243 回答