禁用或删除默认的vim键盘绑定


11

有没有办法禁用或删除默认的vim键盘绑定?

例如,如果我想让<S-k>(shift-k)不执行任何操作,该如何实现?

Answers:


16

您无法获得unmapvim所需的内部键绑定,但可以将其映射<Nop>为禁用它们。在vim中运行此命令::map <S-k> <Nop>或将此行添加到您的.vimrc文件中:

map <S-k> <Nop>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.