{"id":14257,"date":"2021-03-17T10:07:40","date_gmt":"2021-03-17T02:07:40","guid":{"rendered":"http:\/\/blog.idc.net\/14257\/"},"modified":"2021-03-17T10:07:40","modified_gmt":"2021-03-17T02:07:40","slug":"ubuntu-16-04-ide-%e7%94%a8vim%e9%80%90%e6%ad%a5%e6%89%93%e9%80%a0%e4%b8%80%e4%b8%aaide","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/14257\/","title":{"rendered":"Ubuntu 16.04 IDE: \u7528Vim\u9010\u6b65\u6253\u9020\u4e00\u4e2aIDE"},"content":{"rendered":"<div class=\"idc_table\">\n<p>\u76ee\u524d\u52a0\u5f3a\u4e86\u4e00\u4e0bUbuntu 16.04\u7ec8\u7aef\uff0c\u4ee3\u7801\u63d0\u793a\u548c\u6811\u5f62\u6587\u4ef6\u7ba1\u7406\uff1a<\/p>\n<p>1\uff0c\u5f53\u4efb\u52a1\u6bd4\u8f83\u591a\u7684\u65f6\u5019\uff0c\u5982\u679c\u5728Ubuntu\u4e0b\u5207\u6362\u591a\u4e2a\u7ec8\u7aef\uff0c\u4f1a\u6bd4\u8f83\u9ebb\u70e6\uff0c\u8fd9\u91cc\u6211\u627e\u5230\u4e00\u4e2a\u6bd4\u8f83\u597d\u7684\u7ec8\u7aef(terminator)<\/p>\n<p>sudo apt-get install terminator<\/p>\n<p>\u5b89\u88c5\u5b8c\u4e4b\u540e\u7684\u6548\u679c\uff1a<\/p>\n<p>\u53f3\u952e\u53ef\u4ee5\u5206\u5272\u7a97\u53e3\u6216\u8005\u65b0\u5efatab, preference\u53ef\u4ee5\u5b9a\u5236\u5916\u89c2<\/p>\n<p>2\uff0c\u5b89\u88c5YouCompleteMe<\/p>\n<p>bundle\u662f\u4e00\u4e2a\u63d2\u4ef6\u5b89\u88c5\u7ba1\u7406\u5668\uff0c\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u5c31\u4f1a\u5728\u5bb6\u76ee\u5f55\u4e0b\u9762\u7684.vim\u76ee\u5f55\u751f\u6210bundle\u76ee\u5f55\u53ca\u76f8\u5173\u914d\u7f6e<\/p>\n<p>\u6211\u91c7\u7528\u7684\u662fgit\u5b89\u88c5\uff0cbundle\u5b89\u88c5\u592a\u6162\u4e86\uff0c\u770b\u4e0d\u89c1\u8fdb\u5ea6<\/p>\n<p>\u5728\u5bb6\u76ee\u5f55\u4e0b\uff0ccd .vim\/bundle\/<\/p>\n<p>\u4e0b\u8f7dYouCompleteMe:<\/p>\n<p>git clone --recursive https:\/\/github.com\/Valloric\/YouCompleteMe.git<\/p>\n<p>\u4ee5\u4e0b\u4e3a\u4e3b\u8981\u5b89\u88c5\u547d\u4ee4\u548c\u9700\u8981\u5b89\u88c5\u7684\u4e1c\u897f\uff1a<\/p>\n<p>cd YouCompleteMe\/<\/p>\n<p>sudo apt-get install llvm-3.9 clang-3.9 libclang-3.9-dev libboost-all-dev<br \/>sudo apt-get install Python-dev python3-dev<br \/>mkdir ~\/.ycm_build<br \/>cd ~\/.ycm_build<\/p>\n<p>cmake -G \"Unix Makefiles\" . ~\/.vim\/bundle\/YouCompleteMe\/third_party\/ycmd\/cpp<\/p>\n<p>cmake -G \"Unix Makefiles\" -DUSE_SYSTEM_BOOST=ON -DUSE_SYSTEM_LIBCLANG=ON . ~\/.vim\/bundle\/YouCompleteMe\/third_party\/ycmd\/cpp<\/p>\n<p>cmake --build . --target ycm_core --config Release<\/p>\n<p>cp ~\/.vim\/bundle\/YouCompleteMe\/third_party\/ycmd\/examples\/.ycm_extra_conf.py ~\/.vim\/<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>http:\/\/valloric.github.io\/YouCompleteMe\/<\/p>\n<p>https:\/\/www.jianshu.com\/p\/d908ce81017a?nomobile=yes<\/p>\n<p>http:\/\/blog.jobbole.com\/58978\/<\/p>\n<p>&nbsp;<\/p>\n<p>3\uff0c\u7528bundle\u5b89\u88c5nerdtree<\/p>\n<p>\u5b89\u88c5\uff1a<\/p>\n<p>\u3000\u3000\u5728.vimrc\u4e2d\uff0c\u5199\u5165\u9700\u8981\u5b89\u88c5\u7684\u63d2\u4ef6<\/p>\n<p>\u6253\u5f00\u4e00\u4e2avim, \u8fd0\u884c:BundleInstall<\/p>\n<p>&nbsp;<\/p>\n<p>\u4f7f\u7528<\/p>\n<p>\u3000\u30001\u3001\u5728linux\u547d\u4ee4\u884c\u754c\u9762\uff0c\u7528vim\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\u3002<\/p>\n<p>\u3000\u30002\u3001\u8f93\u5165 &nbsp;:NERDTree \uff0c\u56de\u8f66<\/p>\n<p>\u3000\u30003\u3001\u8fdb\u5165\u5f53\u524d\u76ee\u5f55\u7684\u6811\u5f62\u754c\u9762\uff0c\u901a\u8fc7\u5c0f\u952e\u76d8\u4e0a\u4e0b\u952e\uff0c\u80fd\u79fb\u52a8\u9009\u4e2d\u7684\u76ee\u5f55\u6216\u6587\u4ef6<\/p>\n<p>\u3000\u30004\u3001ctr+w+h &nbsp;\u5149\u6807focus\u5de6\u4fa7\u6811\u5f62\u76ee\u5f55\uff0cctrl+w+l \u5149\u6807focus\u53f3\u4fa7\u6587\u4ef6\u663e\u793a\u7a97\u53e3\u3002\u591a\u6b21\u6441 ctrl+w\uff0c\u5149\u6807\u81ea\u52a8\u5728\u5de6\u53f3\u4fa7\u7a97\u53e3\u5207\u6362<\/p>\n<p>\u3000\u30005\u3001\u8f93\u5165:q\u56de\u8f66\uff0c\u5173\u95ed\u5149\u6807\u6240\u5728\u7a97\u53e3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u524d\u52a0\u5f3a\u4e86\u4e00\u4e0bUbuntu 16.04\u7ec8\u7aef\uff0c\u4ee3\u7801\u63d0\u793a\u548c\u6811\u5f62\u6587\u4ef6\u7ba1\u7406\uff1a 1\uff0c\u5f53\u4efb\u52a1\u6bd4\u8f83\u591a\u7684\u65f6\u5019\uff0c\u5982\u679c\u5728Ubunt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-14257","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/14257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=14257"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/14257\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=14257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=14257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=14257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}