MacVim的代码段插件无法正常工作

问题描述

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

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:不是编辑器命令: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'

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...