【CentOS】vimplus 解决插件错误

安装

参考:https://blog.csdn.net/qq_34258344/article/details/115534008

网络问题无法下载,如果是阿里云可以考虑:

su root
 
vi /etc/hosts
 
# github
204.232.175.78 http://documentcloud.github.com
207.97.227.239 http://github.com
204.232.175.94 http://gist.github.com
107.21.116.220 http://help.github.com
207.97.227.252 http://nodeload.github.com
199.27.76.130 http://raw.github.com
107.22.3.110 http://status.github.com
204.232.175.78 http://training.github.com
207.97.227.243 http://www.github.com

或者用gitee来下载

Unknown function: textobj#user#plugin

vim-textobj-user 是一个 Vim 插件,可以轻松创建自己的文本对象。创建文本对象很困难,因为有很多陷阱需要处理。这个插件隐藏了这些细节,并提供了一种定义文本对象的声明方式。您可以使用正则表达式来定义简单的文本对象,或者使用函数来定义复杂的对象。

出现这个错误的原因是安装的时候没有找到这个插件:
fatal: unable to access 'https://git::@github.com/sgur/vim-textobj-parameter

我是直接关闭这个插件

vim ~/.vimrc

加上"注释掉154-157行
在这里插入图片描述
之后再使用vim就不会报这个错误了。

The ycmd server SHUT DOWN (restart with ‘:YcmRestartServer’).

YCM core library not detected; you need to compile YCM beforeusing it. Follow the instructions in the documentation.
Press ENTER or type command to continue

cd ~/.vim/bundle/YouCompleteMe
./install.sh

安装完之后不在显示这个错误。

YouCompleteMe是史上最强大的基于语义的自动补全插件,支持C/C++、C#、Python、PHP等语言


版权声明:本文为m0_47634756原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。