问题
my apologies if im asking a retarded question. New to windows bash and saw the vim Plugin "YouCompleteme" and tried to install it with Vundle. However im getting the error as stated in the title. My vim current ver is 7.4.52 anyone have any idea how to solve this?
Edit : I just realised when i just call vim it says 7.4.52 however when i call :version it says 7.4 does this mean im using the wrong vim ?
回答1:
You need to upgrade to the latest vim so run the following commands:
sudo add-apt-repository ppa:jonathonf/vim
sudo apt-get update && sudo apt-get upgrade
That should upgrade your vim
回答2:
sudo add-apt-repository ppa:jonathonf/vim
sudo apt-get update && sudo apt-get upgrade
It these commands don't work above.
You have to use
apt-get -u dist-upgrade
Enforce the package update the last version, and auto process the dependent package issue.
If you also have python error
requires Vim compiled with Python (2.6+ or 3.3+) support
You can use
sudo apt-get install vim-nox
The vim will support the python with newest version
回答3:
I used a older commit of ycm and that worked sufficiently well for me. commit d38ffc54461963c4495fefdd8b0c3d706f72d957 supports vim version version 7.4.52
Go to youcompleteme directory
git checkout d38ffc54461963c4495fefdd8b0c3d706f72d957
git submodule update --init --recursive
./install.py --clang-completer
回答4:
I tried ppa:jonathonf/vim
and found it doesn't support python (ppa configuration on Debian is slightly different). If you use YCM, then it's not the right option for you.
Actually, compiling vim from scratch is not difficult.
You can find this compilation configuration sample useful.
In the vim
dir, you can run ./configure --help
to see a full list of config options.
来源:https://stackoverflow.com/questions/39896698/youcompleteme-unavailable-requires-vim-7-4-143