当前位置: 首页 > 工具软件 > YouCompleteMe > 使用案例 >

安装YouCompleteMe

华季同
2023-12-01

说明

安装YouCompleteMe插件之前,需要安装插件管理器,我使用的是Plug-vim插件管理器,

安装 plug-vim插件管理器

具体的安装教程可以看我之前发的博客链接如下: https://blog.csdn.net/ztx15272300643/article/details/119746132.

安装YouCompletMe

首先需要在~/.vimrc文件中输入以下内容:

call plug#begin('~/.vim/plugged')  
Plug 'Valloric/YouCompleteMe'    //填写此处
call plug#end()

然后输入PlugInstall开始安装

如果PlugInstall属于无效指令,说明没有安装git,此时需要输入以下命令安装git:

apt install git

安装完成后,使用vim打开一个文件,如果出现YouCompleteMe unavailable: No module named 'ycmd’错误信息提示,说明没有安装ycmd,此时需要安装ycmd

 类似资料: