【问题标题】:UltiSnips plugin does not working on MacVimUltiSnips 插件在 MacVim 上不起作用
【发布时间】:2021-01-12 09:41:10
【问题描述】:

我使用 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')))

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

【问题讨论】:

    标签: vim macvim


    【解决方案1】:

    你安装了python3(不是python2)吗? 如果没有,您可以使用 macports 或 homebrew 轻松安装。

    编辑1: 您还可以通过:echo has("python_dynamic") 检查 vim 动态 python 支持。它应该返回 1。 然后添加 设置 pythonthreehome=your python3 home dir

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-09
      • 2013-12-20
      相关资源
      最近更新 更多