问题描述
我使用vundle在MacVim上安装了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')))
这里可能是什么问题,我该如何解决?
解决方法
您是否安装了python3(不是python2)? 如果没有,您可以使用macports或自制软件轻松安装它。
edit1:
您也可以通过:echo has("python_dynamic")
检查vim动态python支持。它应该返回1。
然后添加
设置pythonthreehome = your python3 home dir