VIM的YCM插件安装 编写C语言

本文详述了在Ubuntu上安装VIM、cmake、python、clang、git,以及通过VUNDLE安装和配置YouCompleteMe(YCM)插件的过程,包括编译YCM和设置.ycm_extra_conf.py文件以实现C语言的智能提示和代码补全功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

第一步 安装vim cmake python

sudo apt install build-essential cmake vim-nox python3-dev

第二步 安装clang

sudo apt-get install clang

第三步 安装git

sudo apt-get install git

第四步 安装VUNDLE

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

在家目录下,vim .vimrc
在.vimrc文件中粘贴下边几句话:

set shell=/bin/bash
 
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'
 
" The following are example
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值