检测密钥是否绑定到vim中的某物 [英] Detect if a key is bound to something in vim
问题描述
我想知道是否有一种方法可以确定某个键是否在vim中起作用.我知道我可以使用:map
来查看用户定义的映射,但是内置的东西有东西吗?
I'd like to know if there is a way to figure out if a key does something in vim. I know that I can use :map
to see user-defined mappings, but is there something for the built-in stuff?
例如,我总是将 CTRL - W 绑定到关闭标签,因为我认为它没有使用.半年后,我发现有一些使用它的序列,例如 CTRL - W CTRL - S 劈开窗户,重新训练自己真是一场噩梦.
For example, I always had CTRL-W bound to close tab, because I thought that it was unused. After half a year, I found out that there are some sequences that use it, like CTRL-W CTRL-S to split the window, and it was a nightmare to retrain myself.
推荐答案
如果您查看Randy Morris的建议答案,您会发现
If you check out the suggested answer by Randy Morris you will find that
:help index
将为您提供所需的列表.
will give you the list you want.
这篇关于检测密钥是否绑定到vim中的某物的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!