检测一个键是否绑定到vim中的某个东西 [英] Detect if a key is bound to something in vim

查看:17
本文介绍了检测一个键是否绑定到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 

会给你你想要的清单.

这篇关于检测一个键是否绑定到vim中的某个东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆