YouCompleteMe unavailable : requires Vim 7.4.143

2019-07-05 02:19发布

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 ?

4条回答
贪生不怕死
2楼-- · 2019-07-05 02:21

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

查看更多
老娘就宠你
3楼-- · 2019-07-05 02:21

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.

查看更多
霸刀☆藐视天下
4楼-- · 2019-07-05 02:41

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 
查看更多
Summer. ? 凉城
5楼-- · 2019-07-05 02:47

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

查看更多
登录 后发表回答