0

After a system upgrade to:

  • Distributor ID: Ubuntu
  • Description: Ubuntu 12.04.2 LTS
  • Release: 12.04
  • Codename: precise

Each time I open vim I get these errors, any hint? If needed I can provide .vimrc file. Thanks in advance!

"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:
...
4

1 回答 1

2

原因似乎很明显:您使用的 Vim 版本不是用 python 支持构建的。

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

如果您使用图形环境:

$ sudo apt-get install vim-gnome

如果您不这样做:

$ sudo apt-get install vim-nox
于 2013-11-14T20:27:10.187 回答