我对 Snipmate 没有任何运气。我已经使用病原体来安装 snipmate 以及 tlib、addon-utils 和代码片段。这是详细 imap 的输出。
<S-Tab> <Plug>snipMateBack
Last set from ~/.vim/bundle/vim-snipmate/after/plugin/snipMate.vim
<Plug>snipMateShow * <C-R>=snipMate#ShowAvailableSnips()<CR>
Last set from ~/.vim/bundle/vim-snipmate/plugin/snipMate.vim
<Plug>snipMateBack * <C-R>=snipMate#BackwardsSnippet()<CR>
Last set from ~/.vim/bundle/vim-snipmate/plugin/snipMate.vim
<Plug>snipMateTrigger * <C-R>=snipMate#TriggerSnippet(1)<CR>
Last set from ~/.vim/bundle/vim-snipmate/plugin/snipMate.vim
<Plug>snipMateNextOrTrigger * <C-R>=snipMate#TriggerSnippet()<CR>
Last set from ~/.vim/bundle/vim-snipmate/plugin/snipMate.vim
<S-Insert> <MiddleMouse>
Last set from /usr/share/vim/vim74/debian.vim
<Tab> <Plug>snipMateNextOrTrigger
Last set from ~/.vim/bundle/vim-snipmate/after/plugin/snipMate.vim
<C-R><Tab> <Plug>snipMateShow
Last set from ~/.vim/bundle/vim-snipmate/after/plugin/snipMate.vim
基本上,我创建了一个名为“test.html”的文件并键入“html”,然后键入 Tab,自动完成不起作用。
TIA,
托马斯