{"id":96453,"date":"2020-04-17T23:26:54","date_gmt":"2020-04-17T15:26:54","guid":{"rendered":"http:\/\/4563.org\/?p=96453"},"modified":"2020-04-17T23:26:54","modified_gmt":"2020-04-17T15:26:54","slug":"vim-%e8%87%aa%e5%8a%a8%e8%a1%a5%e5%85%a8-youcompleteme-%e7%9a%84%e6%8f%90%e7%a4%ba%e6%a1%86%e4%b8%8d%e5%85%b3%e9%97%ad%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=96453","title":{"rendered":"Vim \u81ea\u52a8\u8865\u5168 YouCompleteme \u7684\u63d0\u793a\u6846\u4e0d\u5173\u95ed\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Vim \u81ea\u52a8\u8865\u5168 YouCompleteme \u7684\u63d0\u793a\u6846\u4e0d\u5173\u95ed\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : superhxl <\/span>  <span><i><\/i> 66<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>Vim \u91c7\u7528 YouCompleteme \u81ea\u52a8\u8865\u5168\uff0c\u4e3b\u8981\u5199 python \u7a0b\u5e8f\u3002\u73b0\u5728\u914d\u7f6e\u53ef\u4ee5\u8865\u5168\uff0c\u4f46\u63d0\u793a\u6846\u6ede\u7559\u65f6\u95f4\u8fc7\u957f\uff0c\u8865\u5168\u540e\u4e0d\u5173\u95ed\u3002 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/05\/20200520_5ec52d8bd0df4.png\" alt=\"Vim \u81ea\u52a8\u8865\u5168 YouCompleteme \u7684\u63d0\u793a\u6846\u4e0d\u5173\u95ed\u95ee\u9898\" \/> \u8bf7\u95ee\u5e94\u5982\u4f55\u8bbe\u7f6e\u624d\u80fd\u5728\u8865\u5168\u540e\u5173\u95ed\u63d0\u793a\u7a97\u53e3\uff0c\u8c22\u8c22\uff01 \u8fd9\u662f\u6211\u7684\u8bbe\u7f6e\u90e8\u5206\uff08\u90fd\u662f\u7f51\u4e0a\u6284\u7684\uff0c\u5f88\u591a\u4e0d\u660e\u767d\u610f\u601d\uff09<\/p>\n<pre><code>\" \"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\" \" Youcomplete settings \" \"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\" \" \u8865\u5168\u529f\u80fd\u5728\u6ce8\u91ca\u4e2d\u540c\u6837\u6709\u6548 let g:ycm_complete_in_comment=1 let g:ycm_confirm_extra_conf=0 let g:ycm_global_ycm_extra_conf = '~\/.vim\/plugged\/YouCompleteMe\/third_party\/ycmd\/.ycm_extra_conf.py' \" \u8865\u5168\u5185\u5bb9\u4e0d\u4ee5\u5206\u5272\u5b50\u7a97\u53e3\u5f62\u5f0f\u51fa\u73b0\uff0c\u53ea\u663e\u793a\u8865\u5168\u5217\u8868 set completeopt=longest,menu let g:ycm_add_preview_to_completeopt=0 \" \u4ece\u952e\u5165\u7b2c 2 \u4e2a\u5b57\u7b26\u5f00\u59cb\u7f57\u5217\u5339\u914d\u9879 let g:ycm_min_num_of_chars_for_completion=2 \" \u7981\u6b62\u7f13\u5b58\u5339\u914d\u9879\uff0c\u6bcf\u6b21\u90fd\u91cd\u65b0\u751f\u6210\u5339\u914d\u9879 let g:ycm_cache_omnifunc=1 \" \u8bed\u6cd5\u5173\u952e\u5b57\u8865\u5168 let g:ycm_seed_identifiers_with_syntax=1 let g:ycm_key_list_select_completion=['&lt;C-n&gt;'] let g:ycm_key_list_previous_completion=['&lt;C-p&gt;'] \" \u8865\u5168\u540e\u81ea\u52a8\u5173\u95ed\u9884\u89c8\u7a97\u53e3 let g:ycm_autoclose_preview_window_after_completion = 1 \" \u79bb\u5f00\u63d2\u5165\u6a21\u5f0f\u540e\u81ea\u52a8\u5173\u95ed\u9884\u89c8\u7a97\u53e3 autocmd InsertLeave * if pumvisible() == 0|pclose|endif \" \u8865\u5168\u5b8c\u6210\u65f6\u9884\u89c8\u7a97\u53e3\u81ea\u52a8\u6d88\u5931 augroup complete  autocmd!  autocmd CompleteDone * pclose augroup end   <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"868989\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nightwitch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u5148\u628a\u8fd9\u4e9b\u8bbe\u7f6e\u90fd\u6ce8\u91ca\u6389\uff0c\u7528 ycm \u7684\u9ed8\u8ba4\u914d\u7f6e\u770b\u770b\u3002ycm \u9ed8\u8ba4\u914d\u7f6e\u4e0b\u63d0\u793a\u6846\u5de5\u4f5c\u7684\u5f88\u6b63\u5e38                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868990\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : emisora <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u8003\u8651\u5b9e\u65bd deoplete \u6362\u6389 ycm                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868991\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : omph <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             vim \u6709\u5f88\u591a\u73b0\u6210\u7684\u914d\u7f6e\u6846\u67b6\uff0c\u627e\u4e2a\u5408\u9002\u7684\u5c31\u597d\uff0c\u81ea\u5df1\u914d\u592a\u8d39\u65f6\u95f4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868992\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Aumujun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63a8\u8350\u4f7f\u7528 coc.nvim\uff0c\u8fd9\u4e2a\u6846\u67b6\u7279\u522b\u597d\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868993\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : superhxl <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nightwitch \u4e0d\u884c\uff0c\u7ee7\u7eed\u60f3\u529e\u6cd5\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868994\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : superhxl <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @omph \u6709\u63a8\u8350\uff0c\u4e3b\u8981\u5199 Python\uff0cLaTeX \uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868995\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gitopen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @omph #3 \u63a8\u8350\u4e00\u4e2a\u6492                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868996\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : omph <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @superhxl #6 <br \/>@gitopen #7 <br \/>\u770b\u5230\u8fc7\u51e0\u4e2a\uff0c\u90fd\u662f\u56fd\u4eba\u7684<br \/>[\u4e3b\u9875 | SpaceVim]( https:\/\/spacevim.org\/cn\/)<br \/>[EverVim: A Modern, Powerful &amp; Modular Vim Distribution]( https:\/\/github.com\/LER0ever\/EverVim)<br \/>[meetbill\/Vim:                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"868997\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lancelock <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u73b0\u5728 lsp \u662f\u738b\u9053\uff0c\u8bd5\u8bd5 coc.nvim \u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Vim \u81ea\u52a8\u8865\u5168 YouCompl&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/96453"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96453"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/96453\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96453"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}