j1z0/vim-config

I meet some error when run you script

sdrgroup opened this issue · 5 comments

After run your script, I got following message. I don't know what's wrong with it. Could you help me solve it? Thank you.
line 65:
E319: Sorry, the command is not available in this version: py << EOF
line 66:
E492: Not an editor command: import os.path
line 67:
E492: Not an editor command: import sys
line 68:
E492: Not an editor command: import vim
line 69:
E15: Invalid expression: 'VIRTUA_ENV' in os.environ:
line 126:
E171: Missing :endif
Error: Required vim compiled with +python

My OS is ubuntu16.04

j1z0 commented

This vimrc requires VIM compiled with python.

Seems like this thread would have some good info for you:
http://askubuntu.com/questions/764882/ubuntu-16-04-vim-without-python-support

I get the same " Error ", but I can't execute the command "apt install vim-nox-py2" with Debian.

So what should I do?

Hi.

I am a Linux noobs and am trying your script on Linux Mint 19 and these are the error messages I get:
Error detected while processing /home/XXXXX/.vim/vimrc:
line 66:
E319: Sorry, the command is not available in this version: py << EOF
line 67:
E492: Not an editor command: import os.path
line 68:
E492: Not an editor command: import sys
line 69:
E492: Not an editor command: import vim
line 70:
E15: Invalid expression: 'VIRTUA_ENV' in os.environ:
line 127:
E171: Missing :endif
Error: Required vim compiled with +python
I tried to follow this link (http://askubuntu.com/questions/764882/ubuntu-16-04-vim-without-python-support) and vim-nox-py2 is can not be located.

Have you tried your script on the latest Ubuntu or Linux Mint?
Where can I learn more about these errors?
Is it possible to help or update your script?

Thanks

j1z0 commented

yeah basically you need vim compiled with python 2 support for that to work.. .if you vim has python 3 support you can change py << EOF to py3 << EOF but either way you need some sort of python support compiled with your VIM.

yeah basically you need vim compiled with python 2 support for that to work.. .if you vim has python 3 support you can change py << EOF to py3 << EOF but either way you need some sort of python support compiled with your VIM.

thanks, that helped me :)