要禁用“进入防爆模式",请执行以下操作:在Vim中 [英] To disable "Entering Ex mode" in Vim
本文介绍了要禁用“进入防爆模式",请执行以下操作:在Vim中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一天偶然得到10次以下的记录.
I get the following 10X times a day by accident.
进入防爆模式.键入"visual"以进入普通"模式.
Entering Ex mode. Type "visual" to go to Normal mode.
如何禁用在Vim中导致该组合的组合?
推荐答案
此答案基于@NielsBom的评论2012年10月4日和@BrianCarper的回答2009年8月13日.
This answer is based on @NielsBom's comment 4. October 2012 and on @BrianCarper's answer 13. August 2009.
我认为NielsBom是完全正确的,请参阅这篇文章.
在Vim中,命令map
确实是邪恶的,多年来已经给我造成了很多问题.
在NielsBom发表评论之前,我没有意识到这件事.因此,请改用以下命令:
I think NielsBom is completely right, please see the article.
The command map
is really evil in Vim and has caused me a lot of problems during years.
I did not realize the thing before NielsBom's comment. So please use the following command instead:
:nnoremap Q <Nop>
这篇关于要禁用“进入防爆模式",请执行以下操作:在Vim中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文