我已经在 debian 系统上安装了 vim 7.3 以及我从互联网上下载的一些 vimrc。它曾经在我的其他 debian 机器上运行良好,但在这里我在加载 vim 编辑器时收到这些错误消息。
这里是错误:
Error detected while processing /home/tejinder/.vim/plugin/gundo.vim:
line 196:
E319: Sorry, the command is not available in this version: python << ENDPYTHON
line 197:
E492: Not an editor command: def asciiedges(seen, rev, parents):
line 199:
E121: Undefined variable: rev
E15: Invalid expression: rev not in seen:
line 221:
E133: :return not inside a function
line 231:
E133: :return not inside a function
line 233:
E133: :return not inside a function
line 235:
E133: :return not inside a function
line 238:
E690: Missing "in" after :for
line 347:
E690: Missing "in" after :for
line 356:
E690: Missing "in" after :for
line 453:
E690: Missing "in" after :for
line 464:
E690: Missing "in" after :for
line 469:
E133: :return not inside a function
line 795:
E170: Missing :endfor
Press ENTER or type command to continue
如果有人能弄清楚这是怎么回事,请指导我。非常感谢。
这是 vimrc 源代码: https://github.com/mitsuhiko/dotfiles/tree/master/vim
最佳答案
在 debian 上安装 vim-gnome
或 vim-nox
如果你的系统上没有 X-server。
$ sudo apt-get install vim-nox
这些版本包括对 vim 的 python 支持。
关于python - 从 .vimrc 加载 vim 插件时检测到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4574933/