When you need a keymap such as Ctrl+H, you may write as
<C-h>. However, it may not work as you want. What should you do next? The first thing is that, to determine what the key are interpreted by the terminal in fact. This is a example to the determine which character the keymap
ctrl+H passed to terminal.
vim, and go to the insert mode
ctrl+h, you may get the
^H(or something else)
- Return the normal mode, and then type
- The status line will show:
<^H> 8, Hex 08, Octal 010
- Open the terminal, and then type
- Find the corresponding value:
010 8 08 BS '\b'(backspace)
Ctrl+H passed to terminal is
BS, And then, you should change the value of map to make the keymap working.