[英]Vim: snipMate plug-in does not trigger snippet completion
Vim is installed at /usr/share/vim. Vim安装在/ usr / share / vim中。
All snipMate 's folders were added to this category in existing folders (after, autoload, plugin, snippets, etc.) accordingly. 相应地,所有snipMate的文件夹都被添加到现有文件夹中的此类别中(之后,自动加载,插件,片段等)。
From the documentation file: 从文档文件中:
For instance, to change the trigger
key to CTRL-J, just change this:
ino <tab> <c-r>=TriggerSnippet()<cr>
snor <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
to this:
ino <c-j> <c-r>=TriggerSnippet()<cr>
snor <c-j> <esc>i<right><c-r>=TriggerSnippet()<cr>
I tried this as well - the same result. 我也尝试过-同样的结果。 When I try to trigger snippet match it only adds a tab (4 spaces, accordingly to my .vimrc).
当我尝试触发代码段匹配时,它只会添加一个制表符(4个空格,对应于我的.vimrc)。
PS filetype plugin indent on. PS文件类型插件缩进。
Updated: 更新:
cat /etc/issue
Ubuntu 9.10
:inoremap :inoremap
i <C-B> * <C-R>=TriggerSnippet()<CR>
:snoremap :snoremap
s <C-B> * <Esc>i<Right><C-R>=TriggerSnippet()<CR>
How can I fix this? 我怎样才能解决这个问题?
我通过删除.vimrc上的'set paste'条目解决了这个问题
我在使用snipMate时遇到问题,它无法正常工作,因此我在他们的Issue Tracker中遇到了Issue 66 :
source ~/.vim/after/plugin/snipMate.vim
In my case, I experienced the same thing. 就我而言,我经历了同样的事情。 SnipMate autocomplete does not work.
SnipMate自动完成功能不起作用。 One of the reasons is the is used by other plugin.
原因之一是其他插件使用了。 Typing
:verbose imap <Tab>
will show you which plugin that utilizes the key and cause the conflict. 键入
:verbose imap <Tab>
将显示哪个插件利用了密钥并引起了冲突。 You can either comment out the plugin in .vimrc or you can change it to use another key. 您可以在.vimrc中注释掉插件,也可以将其更改为使用其他密钥。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.