YCM安装教程
下载插件管理工具Vundle
在~目录下有一个.vimrc,我们安装插件只需按照规则中添加 Plugin 的名称,然后回到vim输入:PluginInstall就可以自动化安装
- 新建目录
mkdir ~/.vim/bundle/Vundle.vim
- 将Vundle克隆到本地
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- 修改.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()
“ 将插件名称写在此处
Plugin 'VundleVim/Vundle.vim'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache

本文详细介绍了如何在Vim中安装YouCompleteMe插件,包括下载Vundle,配置.vimrc,手动下载并编译插件,以及解决可能遇到的网络问题和编译错误。
最低0.47元/天 解锁文章
2740

被折叠的 条评论
为什么被折叠?



