MacVim的Snippet插件不起作用



我使用vundle在MacVim上安装了UltiSnips插件。下面是.virc

call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
"Plugin 'sirver/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
"Plugin 'honza/vim-snippets'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
"let g:UltiSnipsExpandTrigger="<tab>"
"let g:UltiSnipsJumpForwardTrigger="<c-b>"
"let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
"let g:UltiSnipsEditSplit="vertical"
"
" All of your Plugins must be added before the following line
call vundle#end()            " required

安装看起来不错,但当我尝试运行命令:UltiSnipsEdit时,它返回错误"E492:Not an editor command:UltiSnipsEdit"。

编辑:我错误地评论了安装UltiSnips的行。我再次安装了UltiSnips,并再次尝试:UltiSnipsEdit命令。相反,我得到了这个错误消息:

Error detected while processing /Users/arya/.vim/bundle/ultisnips/autoload/UltiSnips.vim:
line    7:
E319: Sorry, the command is not available in this version: py3 import vim
line    8:
E319: Sorry, the command is not available in this version: py3 from UltiSnips import UltiSnips_Manager
Error detected while processing function UltiSnips#Edit:
line    6:
E319: Sorry, the command is not available in this version:     py3 vim.command("let file = '%s'" % UltiSnips_Manager._file_to_edit(vim.eval("type"), vim.eval('a:bang')))

这里可能有什么问题,我该如何解决?

您的插件没有安装,因为这行注释为:

"Plugin 'sirver/ultisnips'

最新更新