如何调试vim映射重叠? [英] How to debug vim mapping overlaps?

查看:89
本文介绍了如何调试vim映射重叠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常如何调试和解决重叠的键绑定? 我有这个问题.. 最近,我在我的vim目录中添加了 vim-latex 插件. 之后,我注意到我的ctrl-j绑定被vim-latex/plugin/imaps.vim覆盖,并浪费了很多时间直到解决该问题.

In general how to debug and solve key bindings overlapping? I had this problem.. Recently I add vim-latex plugin to my vim dir. After that I noticed that my ctrl-j bind is overlapped by vim-latex/plugin/imaps.vim and lost a lot of time until solved that.

顺便说一句:我认为imaps.vim中有一个错误,因为这里写着只有在没有映射的情况下才有映射",而我的示例却相反.

By the way: there is a bug in imaps.vim i think, because there is written " map only if there is no mapping already" and my example shows opposite.

推荐答案

您可以从:map命令获取详细信息:

You can get fine-grained info from the :map command:

仅显示与特定键(在本例中为ctrl-J)相关的映射:

To show only mappings relevant to a particular key (in this case ctrl-J):

:map <c-j>

或者更好地显示特定键的映射以及设置映射的脚本:

or, better, to show mappings for particular key as well as the script where the mapping was set:

:verbose map <c-j>

这篇关于如何调试vim映射重叠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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