How do I get Ctrl-Backspace to delete a word in vim within gnome-terminal?

前端 未结 1 1076
梦谈多话
梦谈多话 2021-02-05 22:52

I\'d like Ctrl-Backspace to delete the current word in vim insert mode. From within xterm I can pull this off via

:inoremap  
相关标签:
1条回答
  • 2021-02-05 23:15

    gnome-terminal's libvte would need to be patched.

    libvte already has several options to map backspace, none of which distinguish Ctrl-backspace. It needs an option that does, maybe one that follows the behaviour of the linux console (^? for backspace, ^H for Ctrl-backspace). See this gnome bug.


    2015 update: this was fixed in 23c7cd0f99d504cbab06d4c27254d4f3e2807ba8.

    libvte 0.41.90, 0.40.3 and newer have the fix.

    0 讨论(0)
提交回复
热议问题