vim 插件安装问题
发布于 11 年前 作者 wldouglas 18571 次浏览 最后一次编辑是 8 年前

在安装YouCompleteMe完成的时候打开vim 上面显示 YouCompleteMe unavailable:requires vim 7.3.548+**

12 回复

下意识觉得是 Vim 版本问题, 然后?

然后怎么升级到这个版本就是一个很纠结的问题了

@wldouglas 什么系统, Ubuntu 不?

@jiyinyiyong 嗯ubuntu下面

@wldouglas Vim 我只做基本用途的, 不过这个问题在 README 上有写的呀

https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64-super-quick-installation

Make sure you have Vim 7.3.584 with python2 support. At the time of writing, the version of Vim shipping with Ubuntu is too old. You may need to compile Vim from source (don’t worry, it’s easy).

他都这么说了, 编译过程应该不难的, 我觉得你应该试一试

@jiyinyiyong 没有成功额,求指导指导哈

@wldouglas 呃, 不玩 Vim 的啊… 而且你什么错总要描述清楚才行 如果搞不定, 收集一下细节和网上的说法提交一个问题等高人吧 http://segmentfault.com/

教程在这里,试过了可用https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source 完成后vim版本是 VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 1 2013 22:33:39) Included patches: 1-1287

compile clang的教程我用的这个http://solarianprogrammer.com/2013/01/17/building-clang-libcpp-ubuntu-linux/ 装完后是的clang version是3.4 如果直接sudo apt-get install clang的话版本是3.0

搞好youcompleteme之后别忘了还的在你*.cpp的文件夹里面放上.ycm_extra_conf.py。作者自己写好了一个sample可用,把用不上的flag给关上就好了。

我也在学习vim希望可以互相交流!

个人觉得提示这个功能太不习惯了, 果断删除了。

回到顶部