vundle安装youcompleteme
时间: 2023-04-26 21:00:09 浏览: 165
1. 安装Vundle插件管理器
首先,需要安装Vundle插件管理器。可以通过以下命令来安装:
```
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
```
2. 配置.vimrc文件
在.vimrc文件中添加以下内容:
```
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" YouCompleteMe Plugin
Plugin 'Valloric/YouCompleteMe'
call vundle#end() " required
filetype plugin indent on " required
```
3. 安装YouCompleteMe
保存.vimrc文件后,重新打开vim,并执行以下命令:
```
:PluginInstall
```
等待插件安装完成后,进入YouCompleteMe插件目录,并执行以下命令:
```
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
```
安装完成后,重新打开vim即可使用YouCompleteMe插件。
阅读全文
相关推荐


















