[英]Vim determine what mappings are assigned to a key
My 'O' command (enter a new line above this one and enter insert mode) is slow to take effect. 我的“ O”命令(在该命令上方输入新行并进入插入模式)生效很慢。 It seems like this is because there is some other mapping, such as 'OP' , and that vim is waiting when I hit 'O' to see if I want 'O' or 'OP'.
看来这是因为还有其他一些映射,例如'OP',并且当我按'O'时vim正在等待查看我是否想要'O'或'OP'。 I don't know what set this mapping, it's not anything in my .vimrc.
我不知道是什么设置了此映射,所以我的.vimrc中没有任何内容。 I'd like to find it and change it so I can go back to having snappy 'O' commands, but I don't know how to find it.
我想找到它并对其进行更改,因此我可以返回使用快捷的“ O”命令,但是我不知道如何找到它。
Is there a way to see a list of what mappings a key is involved with? 有没有办法查看密钥所涉及的映射的列表? Note: I do not want to reduce my timeout setting.
注意:我不想减少超时设置。
Thanks 谢谢
:verbose map O
tells you which mappings start with O
. 告诉您哪些映射以
O
开头。 That usually gives you the right hint about mappings that execute only after a short delay. 这通常会为您提供有关仅在短暂延迟后才执行的映射的正确提示。 For the
O
mapping in particular, you may also suffer from the problem described in delay before o opens a new line . 特别是对于
O
映射,您还可能会遇到o打开新行之前延迟描述的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.