[英]vim not reading Tab key as <Tab>
I am using vim 7 on Kubuntu. 我在Kubuntu上使用vim 7。 I have just installed the UltiSnips plugin and I noticed that the Tab key was not expanding the snippets.
我刚刚安装了UltiSnips插件,并且注意到Tab键并未扩展代码片段。 After checking the mapping of the key and verifying it was correct, I found that when I hit Tab, my vim (and gvim) read it as
^GS
, not as <Tab>
. 在检查了键的映射并确认它是正确的之后,我发现当我按下Tab键时,我的vim(和gvim)将其读取为
^GS
,而不是<Tab>
。
I found that ^GS
was a mapping from the surround plugin and after removing it, the Tab key is read as ^H
but it still doesn't trigger the snippet, and there is no mapping for ^H
. 我发现
^GS
是来自Surround插件的映射,删除后,Tab键读为^H
但它仍然不会触发代码段,并且^H
没有映射。
How can I get the Tab key to be read as <Tab>
? 我如何将Tab键读取为
<Tab>
?
Upon more investigation, this is not related to vim and the way it handles <Tab>
. 经过更多研究,这与vim及其处理
<Tab>
的方式无关。 It was a problem in UltiSnips and custom snippets not been read. UltiSnips中存在问题,自定义代码段未读取。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.