Errors detected when loading vim plugin from .vimrc

I installed vim 7.3 on the debian system along with some vimrc that I downloaded from the Internet. It worked fine on my other debian machine, but here I get these error messages while I load the vim editor.

Here are the errors:

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 

If anyone can understand what is going on, please guide me. Thank you very much.

Here is the vimrc source: https://github.com/mitsuhiko/dotfiles/tree/master/vim

+4
source share
5 answers

In debian, install vim-gnome or vim-nox if you do not have an X server on the system.

 $ sudo apt-get install vim-nox 

These versions include python support for vim.

+6
source

The first error message is the one to pay attention to: "python" is not available in your vim. You may have "vim-tiny" installed. Try "apt-get install vim" to get a great build. In addition, in vim, you can use the ": version" command to view all options, regardless of whether they are compiled or not. Your current vim will have "-python" (this means there is no python in the displayed list, unlike + python).

+4
source

Your VIM does not have python support compiled. Unfortunately, I cannot help with what to do with this distribution, because I am a real wizard on how to ruin linux systems by manually installing files that conflict with the package system.

+3
source

Is your Python version 2.4 or better?

Check it out by running

 python --version 

on the command line.

0
source

vim 7.3 is the latest version of vim. I think you are using old .vimrc files. One good way to troubleshoot would be to move ~/.vim to ~/.vim_backup and load vim 7.3 to use the system default vimrc. See if you have all these errors. and download only the plugins you want with 7.3 in your new .vimrc

0
source

Source: https://habr.com/ru/post/1333947/


All Articles