打开VIM时的错误(病原体,绳索,蟒蛇)

时间:2013-11-14 20:04:58

标签: python-2.7 vim jedi pathogen rope

系统升级到:

  • 分销商ID: Ubuntu
  • 描述: Ubuntu 12.04.2 LTS
  • 发布: 12.04
  • 代号:精确

每次打开vim我都会收到这些错误,有什么提示吗?如果需要,我可以提供.vimrc文件。提前谢谢!

"new.py" [New File]

Error detected while processing /home/ajn/.vim/bundle/ropevim/ftplugin/python/ropevim.vim:

line    4:

E319: Sorry, the command is not available in this version: python << EOF

Error detected while processing /home/ajn/.vim/bundle/jedi-vim/autoload/jedi.vim:

line  172:

E319: Sorry, the command is not available in this version: python3 << PYTHONEOF

line  174:

E492: Not an editor command: import vim

line  176:

E488: Trailing characters: # update the system path, to include the jedi path

line  177:

E492: Not an editor command: import sys

line  178:

E492: Not an editor command: import os

line  179:

E492: Not an editor command: sys.path.insert(0, os.path.join(vim.eval('expand("<sfile>:p:h:h")'), 'jedi'))

line  181:

E488: Trailing characters: # to display errors correctly

line  182:

E492: Not an editor command: import traceback

line  184:

E488: Trailing characters: # update the sys path to include the jedi_vim script

line  185:

E492: Not an editor command: sys.path.insert(1, os.path.join(vim.eval('expand("<sfile>:p:h:h")'), 'plugin'))

line  186:
...

1 个答案:

答案 0 :(得分:2)

原因似乎相当明显:你使用的是一个不是用python支持构建的Vim版本。

解决方案也很明显:安装一个使用python支持构建的Vim。

如果您使用图形环境:

$ sudo apt-get install vim-gnome

如果你不这样做:

$ sudo apt-get install vim-nox