{"id":962,"date":"2014-03-02T08:05:12","date_gmt":"2014-03-02T00:05:12","guid":{"rendered":"https:\/\/cowman-chiang.no-ip.org\/wordpress\/?p=962"},"modified":"2019-06-20T10:25:08","modified_gmt":"2019-06-20T02:25:08","slug":"install-vim-plugin-youcompleteme-in-centos-1","status":"publish","type":"post","link":"https:\/\/cowmanchiang.me\/wp\/?p=962","title":{"rendered":"Install Vim Plugin: YouCompleteMe in CentOS #1"},"content":{"rendered":"<p><a href=\"?p=954\" title=\"Install Vim Plugin: YouCompleteMe in CentOS\">\u524d\u4e00\u7bc7\u6587\u7ae0<\/a>\u5b89\u88dd\u4e00\u76f4\u5931\u6557\uff0c\u6240\u4ee5\u91cd\u88dd\u4e86vim\u5f8c\u518d\u4f86\u8a66\u8a66\u770b!<br \/>\n\u57fa\u672c\u4e0a\u6e96\u5099\u52d5\u4f5c\u8ddf\u524d\u4e00\u7bc7\u5931\u6557\u7684\u5b89\u88dd\u8a18\u9304\u4e00\u6a23<!--more--><\/p>\n<p>\u5b89\u88dd\u57fa\u672c\u6240\u9700\u5957\u4ef6<\/p>\n<pre lang=\"bash\">\n[root@WP ~]# yum install cmake28 python-devel gcc\n<\/pre>\n<p>\u4e0b\u8f09\u5b89\u88dd\u6a94\u6848\u9032\u884c\u5b89\u88dd<\/p>\n<pre lang=\"bash\">\n[root@WP ~]# git clone https:\/\/github.com\/Valloric\/YouCompleteMe.git ~\/.vim\/bundle\/YouCompleteMe\n[root@WP ~]# cd ~\/.vim\/bundle\/YouCompleteMe\/\n[root@WP YouCompleteMe]# git submodule update --init --recursive\n[root@WP YouCompleteMe]# .\/install.sh --clang-completer\n<\/pre>\n<p>\u7de8\u4feevimrc\u6a94\u6848\uff0c\u52a0\u5165bundle\u5b89\u88ddyoucompleteme\u90e8\u5206<\/p>\n<pre lang=\"bash\">\n[root@WP ~]# vim \/etc\/vimrc\nBundle 'gmarik\/vundle'\n#\u589e\u52a0\u4e0b\u9762\u9019\u4e00\u884c\nBundle 'Valloric\/YouCompleteMe'\n<\/pre>\n<p>\u9032\u5165vim\u57f7\u884c:BundleInstall\u9032\u884c\u5b89\u88dd<br \/>\n\u5b89\u88dd\u5b8c\u7562\u5f8c\u518d\u7de8\u4feevimrc\uff0c\u5728\u6700\u4e0b\u9762\u52a0\u5165\u5169\u884c<\/p>\n<pre lang=\"bash\">\n[root@WP ~]# vim \/etc\/vimrc\nlet g:ycm_global_ycm_extra_conf = '~\/.vim\/bundle\/YouCompleteMe\/cpp\/ycm\/.ycm_extra_conf.py'\nlet g:EclimCompletionMethod = 'omnifunc'\n<\/pre>\n<p>\u9019\u908aomnifunc\u4e3b\u8981\u662f\u8aaa\u4e4b\u5f8cyoucomplete\u662f\u9760ctrl+X\u3001ctrl+O\u53bbtrigger YouCompleteMe\u4f86\u8f14\u52a9\u7de8\u8f2f<br \/>\n\u5c31\u9019\u6a23\u5b8c\u6210\u4e86&#8230;..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u4e00\u7bc7\u6587\u7ae0\u5b89\u88dd\u4e00\u76f4\u5931\u6557\uff0c\u6240\u4ee5\u91cd\u88dd\u4e86vim\u5f8c\u518d\u4f86\u8a66\u8a66\u770b! \u57fa\u672c\u4e0a\u6e96\u5099\u52d5\u4f5c\u8ddf\u524d\u4e00\u7bc7\u5931\u6557\u7684\u5b89\u88dd\u8a18\u9304\u4e00\u6a23<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[],"class_list":["post-962","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=962"}],"version-history":[{"count":1,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/962\/revisions"}],"predecessor-version":[{"id":2051,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/962\/revisions\/2051"}],"wp:attachment":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}