Vim 自动补全--YouCompleteMe

本文详细介绍了如何在 Vim 中安装和配置 YouCompleteMe 插件,包括使用 Vundle 管理器安装插件、等待漫长的编译过程、安装必要的编译工具,以及在 C++ 项目中配置 .ycm_extra_conf.py 文件以实现代码自动补全功能。
摘要由CSDN通过智能技术生成

Vim 自动补全--YouCompleteMe

一、安装vim的插件管理器Vundle
1.如果自己用户目录下不存在.vim/bundle,可以使用如下命令进行创建

mkdir -p ~/.vim/bundle

2.把Vbundle从github上clone下来,命令如下(如果之前未安装git,请安装后执行如下命令)

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

3.在自己用户目录下的.vimrc中添加如下内容

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle
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()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
"Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
"Plugin
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值