寻找一个vim插件

2013-06-10 20:08:21 +08:00
 yaotian
比如我编辑html, 一个快捷键,列出所有html相关的snipmate出来。

原因是:里面的snipmate定义的内容太多了,不记得了,所以有个快捷键出来提示一下。
2873 次点击
所在节点    程序员
6 条回复
codepiano
2013-06-10 20:20:26 +08:00
下面是utlisnips的文档,<c-tab>是你想要的效果吗?



3.2 Triggers *UltiSnips-triggers*
------------

You can define the keys used to trigger UltiSnips actions by setting global
variables. Variables define the keys used to expand a snippet, jump forward
and jump backwards within a snippet, and list all available snippets in the
current expand context. The variables with their default values are: >
g:UltiSnipsExpandTrigger <tab>
g:UltiSnipsListSnippets <c-tab>
g:UltiSnipsJumpForwardTrigger <c-j>
g:UltiSnipsJumpBackwardTrigger <c-k>
yaotian
2013-06-10 20:35:49 +08:00
@codepiano 是的,多谢。

这个插件我很少用。看上去很强大呀。
codepiano
2013-06-10 22:08:22 +08:00
@yaotian 这个插件目前也比较流行
yaotian
2013-06-10 22:17:52 +08:00
@codepiano 奇怪的是: c-tab在mvim下有用,但在vim下无效。
args
2013-06-11 00:19:31 +08:00
@yaotian 终端不支持这种键组合
yaotian
2013-06-11 09:53:06 +08:00
@args 啊? 我基本上都是在终端操作,有解决办法吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/71912

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX