Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在使用inCtrl-c时返回到正常的 vim 模式。我设法使用以下方法取消映射:zshvi-mode
Ctrl-c
zsh
vi-mode
stty intr ^- stty intr undef
然后用bindkey '^c' vi-cmd-mode在我的.zshrc. 一切正常,但是如何将我的Ctrl-c功能回收到不同的键绑定?
bindkey '^c' vi-cmd-mode
.zshrc
添加作为答案,以备记录:
stty intr ^E或类似的应该工作。:)
stty intr ^E