Vim安装在/usr/share/vim中。
相应地,所有snipMate的文件夹都已添加到现有文件夹中的此类别(之后,自动加载,插件,摘要等)中。
从文档文件中:
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>
我也尝试过-同样的结果。
当我尝试触发代码段匹配时,它只会添加一个制表符(4个空格,对应于我的.vimrc)。
P.S.文件类型插件缩进。
更新:
cat /etc/issue
Ubuntu 9.10
:inoremap
i <C-B> * <C-R>=TriggerSnippet()<CR>
:snoremap
s <C-B> * <Esc>i<Right><C-R>=TriggerSnippet()<CR>
我怎样才能解决这个问题?
最佳答案
我的snipMate有问题,它无法正常工作,因此遇到了Issue 66 in their Issue Tracker:
source ~/.vim/after/plugin/snipMate.vim
关于Vim:snipMate插件不会触发代码段完成,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1899217/