Youcompleteme安装

第一部 安装Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
第二步安装vim
sudo yum install vim
第三步更改.vimrc文件

set rtp+=~/.vim/bundle/Vundle.vim/
set clipboard=unnamed
vnoremap :w !pbcopy
noremap :r !pbpaste
nnoremap :set invpaste paste? imap :set invpaste paste? set pastetoggle=

filetype on
filetype plugin on ” 启用插件,必须required!

” plugin list 插件列表
call vundle#begin()
Plugin ‘gmarik/Vundle.vim’
Plugin ‘scrooloose/nerdtree’
Plugin ‘vim-scripts/taglist.vim’
Plugin ‘nicoraffo/conque’
Plugin ‘Yggdroot/indentLine’
Plugin ‘sjl/gundo.vim’
Plugin ‘rizzatti/dash.vim’
Plugin ‘auto-pairs’
Plugin ‘pydiction’
Plugin ‘Valloric/YouCompleteMe’ ” 这个插件需另外安装和配置!!!
call vundle#end()

:BundleList -列举列表(也就是.vimrc)中配置的所有插件
:BundleInstall -安装列表中的全部插件
:BundleInstall! -更新列表中的全部插件
:BundleSearch foo -查找foo插件
:BundleSearch! foo -刷新foo插件缓存
:BundleClean -清除列表中没有的插件
:BundleClean! -清除列表中没有的插件

第四步 下载ctags
sudo yum install ctags

第四步 配置youcompleteme

https://github.com/Valloric/YouCompleteMe

sudo dnf install automake gcc gcc-c++ kernel-devel cmake


sudo dnf install python-devel python3-devel


cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer

cd ~/.vim/bundle/YouCompleteMe
./install.py
C# support: install Mono and add --omnisharp-completer when calling ./install.py.
Go support: install Go and add --gocode-completer when calling ./install.py.
TypeScript support: install Node.js and npm then install the TypeScript SDK with npm install -g typescript.
JavaScript support: install Node.js and npm and add --tern-completer when calling ./install.py.
Rust support: install Rust and add --racer-completer when calling ./install.py.

接下来总结美化Youcompleteme

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值