最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CentOS安裝YCM的方法

  發(fā)布時(shí)間:2017-03-12 20:44:22   作者:佚名   我要評(píng)論
這篇文章主要介紹了CentOS安裝YCM的方法,需要的朋友可以參考下

1、安裝vundle 

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

2、配置.vimrc

set nocompatible  
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
call vundle#end()     
Bundle 'Valloric/YouCompleteMe'
filetype plugin indent on

3、打開vim運(yùn)行

:BundleInstall

4、安裝必要工具

1、yum install gcc gcc-c++ make automake python-devel
2、安裝CMake

wget http://www.cmake.org/cmake/resources/software.html 
tar -zxv -f cmake-*.*.*.*.tar.gz 
cd cmake-*.*.*.*.tar.gz 
./bootstrap 
gmake 
gmake install

5、安裝clang+llvm(這里用已經(jīng)編譯好的)

1、wget http://llvm.org/releases/3.5.1/clang+llvm-3.5.1-x86_64-fedora20.tar.xz
xz -d clang+llvm-3.5.1-x86_64-fedora20.tar.xz
tar xvf clang+llvm-3.5.1-x86_64-fedora20.tar
cd clang+llvm-3.5.1-x86_64-fedora20
注:也可用tar xvf clang+llvm-3.5.1-x86_64-fedora20.tar.xz解壓

2、在/etc/profile這個(gè)檔案最尾端添加以下兩行代碼:

PATH=/usr/local/cmake/bin:/usr/clang_3_3/bin:$PATH
export PATH

3、執(zhí)行更新變量:source /etc/profile

6、進(jìn)入YCM目錄,運(yùn)行

./install.sh –clang-completer

7、對(duì)~/.vimrc做配置

let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/y   cmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_confirm_extra_conf = 0

let g:ycm_semantic_triggers = {
  \   'c' : ['->', '    ', '.', ' ', '(', '[', '&'],
\     'cpp,objcpp' : ['->', '.', ' ', '(', '[', '&', '::'],
\     'perl' : ['->', '::', ' '],
\     'php' : ['->', '::', '.'],
\     'cs,java,javascript,d,vim,python,perl6,scala,vb,elixir,go' : ['.'],
\     'ruby' : ['.', '::'],
\     'lua' : ['.', ':']
\ }

相關(guān)文章

最新評(píng)論

长宁区| 丰原市| 凤山县| 西林县| 揭西县| 南澳县| 长白| 邢台市| 汤阴县| 荃湾区| 莱州市| 丰都县| 盘锦市| 沙坪坝区| 阳朔县| 深泽县| 专栏| 广元市| 阿拉善盟| 永吉县| 郸城县| 布拖县| 浑源县| 山西省| 枣阳市| 曲靖市| 乐至县| 竹溪县| 铅山县| 昆明市| 南部县| 金乡县| 蒙自县| 肥城市| 海林市| 天气| 奉节县| 桦川县| 江口县| 都江堰市| 南阳市|