YouCompleteMe安装及c/c++语法检测库编译

http://hahaya.github.io/build-YouCompleteMe/

这篇文章步骤说得还比较清楚。注意修改文件路径。

只是目前还不了解clang和cmake,不清楚原理。

不过之后出现了这个错误

The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core library c
ompiled for Python 2 but loaded in Python 3. Set the 'g:ycm_server_python_interp
reter' option to a Python 2 interpreter path.


然而其实最后才发现自己犯了一个很傻的错误,眼瞎了,那就是这篇文章前面都是说的编译ycm,而我是已经用install.py全部装好了。。。

所以只需要在.vimrc加上let g:ycm_global_ycm_extra_conf 的路径就行了。。。害我折腾两个小时

猜你喜欢

转载自blog.csdn.net/ftstic/article/details/80144693
今日推荐