YouCompleteMe unavailable : requires Vim 7.4.143

依然范特西╮ 提交于 2019-12-23 19:23:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!