MacVim 的代码片段插件不工作
Snippet plugin for MacVim does not working
我使用 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
时,它 returns 错误 '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'
我使用 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
时,它 returns 错误 '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'