ubuntu 14.04下安裝clang_complete

來源:互聯網
上載者:User

標籤:vim   clang_complete   c++   

ubuntu 14.04下安裝vim的C++補全外掛程式clang_complete

1.安裝clang

apt-get install clang

2.安裝libclang

apt-get install  libclang-dev

3.安裝clang_complete外掛程式

git clone https://github.com/Rip-Rip/clang_complete

cd clang_complete

make install
4.修改.vimrc

let g:clang_complete_copen=1
let g:clang_periodic_quickfix=1
let g:clang_snippets=1
let g:clang_close_preview=1
let g:clang_use_library=1
let g:clang_user_options=‘-std=c++11‘
let g:neocomplcache_enable_at_startup = 1 
let g:clang_library_path=‘/usr/lib/llvm-3.4/lib/‘


5.測試

#include <vector>int main(){     std:://這個地方會出現提示,再輸入v就出現vector的選項}




聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.