Youcompleteme安装

xiaoxiao2021-02-28  133

第一部 安装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

转载请注明原文地址: https://www.6miu.com/read-73992.html

最新回复(0)