本文共 793 字,大约阅读时间需要 2 分钟。
今天又重装了一下vimplus插件,但是安装之后闪退。看了一下log发现是youcompleteme插件的问题,一不小心关了terminal就不贴log了。看了官方repo中的讨论,发现有很多人遇到这个问题,重新reset到旧版本解决了。暂且记录安装方法。
# 安装youcompleteme插件cd ~/.vim/bundle/rm -rf YouCompleteMegit clone https://github.com/Valloric/YouCompleteMe.gitcd ~/.vim/bundle/YouCompleteMegit reset --hard 31b6d942git submodule update --init --recursive./install.py --clang-completer
如果遇到错误,需要重新执行git sumodule update --init --recursive
YouCompleteMe unavailable: 'module' object has no attribute 'AddNearestThirdPartyFoldersToSysPath
在ubuntu上安装时遇到错误:
The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core library not detected; you need to compile YCM b efore using it. Follow the instructions in the documentation.
解决办法,重新进入youcompleteme目录安装一下就可以了:
cd ~/.vim/bundle/YouCompleteMe./install.py
参考:
转载地址:http://xgmli.baihongyu.com/