{"id":6071,"date":"2016-10-01T22:39:19","date_gmt":"2016-10-01T14:39:19","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=6071"},"modified":"2016-10-01T23:29:22","modified_gmt":"2016-10-01T15:29:22","slug":"%e8%a7%a3%e5%86%b3%e4%b8%80%e4%b8%aavim%e8%87%aa%e5%8a%a8%e6%8f%90%e7%a4%ba%e5%8a%9f%e8%83%bd%e5%8d%a1%e6%ad%bb%e7%9a%84%e5%a5%87%e6%80%aa%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/6071.html","title":{"rendered":"\u89e3\u51b3\u4e00\u4e2avim\u81ea\u52a8\u63d0\u793a\u529f\u80fd\u5361\u6b7b\u7684\u5947\u602a\u95ee\u9898"},"content":{"rendered":"<p>\u75c7\u72b6\u662f\u6211\u8fdb\u5165\u5230\u9879\u76ee\uff0c\u7f16\u5199\u4ee3\u7801<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport sys\r\nprint sys.\r\n<\/pre>\n<p>\u5f53\u6211\u6253\u51fa\u90a3\u4e2a . \u65f6\uff0c\u56e0\u4e3a\u6211\u88c5\u4e86\u4ee3\u7801\u81ea\u52a8\u63d0\u793a\u63d2\u4ef6\uff0c\u6309\u7406\u4f1a\u81ea\u52a8\u63d0\u793a\uff0c\u4f46\u662f\u6b64\u65f6vim\u5b8c\u5168\u5361\u6b7b\u6ca1\u53cd\u5e94\uff0c\u6309\u4efb\u4f55\u952e\u90fd\u6ca1\u6709\u7528\uff0c\u53ea\u80fd\u5173\u95edshell\u3002<\/p>\n<p>\u5728\u7f51\u4e0a\u627e\u4e86\u4e00\u4e9b\uff0c\u5982\u8fd9\u91cc\uff1a<\/p>\n<p>https:\/\/github.com\/klen\/python-mode\/issues\/405<\/p>\n<p>\u8fd9\u91cc\uff1a<\/p>\n<p>https:\/\/github.com\/klen\/python-mode\/issues\/342<\/p>\n<p>\u6309\u5e16\u5b50\u91cc\u9762\u8bf4\u7684\uff0c\u8bbe\u7f6e\u4e86\u5982\u4e0b\u53c2\u6570\u90fd\u4e0d\u7ba1\u7528\uff1a<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nlet g:pymode_rope = 0\r\nlet g:pymode_rope_lookup_project = 0\r\nlet g:pymode_rope_complete_on_dot = 0\r\n<\/pre>\n<p>\u800c\u4e14\u6211\u627e\u4e0d\u5230\u5e16\u5b50\u91cc\u9762\u8bf4\u7684 .ropeproject \u6587\u4ef6\u5939\u3002<\/p>\n<p>\u6211\u6362\u5176\u5b83\u4ee3\u7801\u9879\u76ee\u8fdb\u884c\u7f16\u8f91\uff0c\u8f93\u5165 \u70b9\u65f6\u4ee3\u7801\u63d0\u793a\u53c8\u662f\u6b63\u5e38\u7684\uff0c\u53ea\u6709\u76ee\u524d\u8fd9\u4e2a\u9879\u76ee\u4f1a\u51fa\u73b0\u5361\u6b7b\uff0c\u5f88\u5947\u602a \u3002\u3002\u3002<\/p>\n<p>\u6211\u5c1d\u8bd5\u628a\u81ea\u52a8\u63d0\u793a\u63d2\u4ef6 neocomplete.vim \u7ed9\u5220\u9664\u6389\uff0c\u7136\u540e\u81ea\u7136\u6ca1\u6709\u81ea\u52a8\u63d0\u793a\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u4f46\u662f\u6362\u4e0a\u63d0\u793a\u5c31\u53c8\u4e0d\u884c\u3002<\/p>\n<p>\u73b0\u5728\u5206\u6790\u4e0b\uff0c\u4e00\u80af\u5b9a\u662f\u4ee3\u7801\u81ea\u52a8\u63d0\u793a\u5f15\u8d77\u7684\u3002\u4e8c\u662f\u53ea\u6709\u7f16\u8f91\u76ee\u524d\u8fd9\u4e2a\u4ee3\u7801\u65f6\u6709\u95ee\u9898\uff0c\u6362\u5230\u7f16\u8f91 \u5176\u5b83\u9879\u76ee\u5c31\u6b63\u5e38\u3002\u6240\u4ee5\u5e94\u8be5\u662f\u8fd9\u4e2a\u9879\u76ee\u7684\u4ee3\u7801\u6216\u6587\u4ef6\u89e6\u53d1\u4e86\u81ea\u52a8\u63d0\u793a\u63d2\u4ef6\u7684\u4e00\u4e2abug\u3002\u3002\u3002<\/p>\n<p>\u540e\u6765\uff0c\u5361\u6b7b\u540e\u6211N\u4e45\u6ca1\u6709\u5173\u95edshell\uff0c\u51fa\u6765\u4e86\u4e00\u4e2a\u63d0\u793a\uff1a<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n #coding=utf-8\r\n print atexit&#x5B;W] 8967 qimessaging.transportsocket: connect: Operation timed out\r\n<\/pre>\n<p>\u662f\u6211\u6253 atexit \u70b9\u65f6\uff0c\u90a3\u4e2a\u70b9\u6ca1\u51fa\u6765\u5c31\u5361\u6b7b\uff0c\u6700\u7ec8\u51fa\u6765\u8fd9\u4e2a\u63d0\u793a\u3002<\/p>\n<p><a href=\"https:\/\/kyle.ai\/blog\/wp-content\/uploads\/2016\/10\/\u5c4f\u5e55\u5feb\u7167-2016-10-01-\u4e0b\u534810.26.18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6073\" src=\"https:\/\/kyle.ai\/blog\/wp-content\/uploads\/2016\/10\/\u5c4f\u5e55\u5feb\u7167-2016-10-01-\u4e0b\u534810.26.18.png\" alt=\"%e5%b1%8f%e5%b9%95%e5%bf%ab%e7%85%a7-2016-10-01-%e4%b8%8b%e5%8d%8810-26-18\" width=\"708\" height=\"264\" \/><\/a><\/p>\n<p>\u8fd9\u4e2a\u63d0\u793a\u6070\u597d\u662f\u9879\u76ee\u4ee3\u7801\u4e2d\u7684\u4e00\u4e2a\u903b\u8f91\uff0c\u8fde\u63a5\u5230\u4e00\u4e2a socket \uff0c\u800c\u4e14\u9879\u76ee\u914d\u7f6e\u4e2d\u7684ip\u5730\u5740\u76ee\u524d\u4e0d\u5b58\u5728\uff0c\u8fd9\u4e2aip\u662f\u5728\u516c\u53f8\u7684\uff0c\u800c\u6211\u73b0\u5728\u5728\u5bb6\u91cc\u9762\uff0c\u6240\u4ee5\u8fde\u63a5\u80af\u5b9a\u6709\u95ee\u9898\u3002<\/p>\n<p>\u6240\u4ee5\u73b0\u5728\u95ee\u9898\u6e90\u5934\u51fa\u6765\u4e86\uff0c\u5c31\u662f\u6211\u5728\u4ee3\u7801\u5f15\u7528\u91cc\u9762\u76f4\u63a5\u5b9e\u4f8b\u5316\u4e86\u4e00\u4e2a\u7c7b\uff0c\u800c\u8fd9\u4e2a\u7c7b\u76f4\u63a5\u53bb\u8fde\u63a5\u4e00\u4e2asocket\u3002<\/p>\n<p>\u5f53vim\u7684\u81ea\u52a8\u63d0\u793a\u63d2\u4ef6\u5de5\u4f5c\u65f6\uff0c\u5b83\u5e94\u8be5\u9700\u8981\u628a\u5f53\u524d\u9879\u76ee\u7684\u4ee3\u7801\u90fd import \u8fdb\u6765\uff0c\u7136\u540e\u53bb\u53d1\u73b0\u91cc\u9762\u7684\u7c7b\u3001\u65b9\u6cd5\u7b49\u4fe1\u606f\uff0c\u800c\u6211\u4eec\u9879\u76ee\u4ee3\u7801\u91cc\u9762\u6709\u4e2a\u5730\u65b9\uff0c\u4e00\u65e6 import \u8fdb\u6765\u5c31\u4f1a\u81ea\u52a8\u6267\u884c\u8fde\u63a5 socket \uff0c\u5f53\u8fd9\u4e2a\u76ee\u6807ip\u8bbf\u95ee\u4e0d\u5230\u65f6\uff0c\u5c31\u5361\u6b7b\u4e86\uff0c\u4e00\u76f4\u5361\u5728\u5c1d\u8bd5\u8fde\u63a5socket\u90a3\u91cc\u3002<\/p>\n<p>\u627e\u5230\u95ee\u9898\u540e\uff0c\u89e3\u51b3\u529e\u6cd5\u5c31\u975e\u5e38\u660e\u4e86\u4e86\uff0c\u76f4\u63a5\u6539\u4ee3\u7801\uff0c\u7981\u6b62Import\u7684\u65f6\u5019\u505a\u4efb\u4f55\u5177\u4f53\u7684\u903b\u8f91\uff0c\u8fd9\u6837\u770b\u6765\uff0c\u4ee3\u7801\u89c4\u8303\u786e\u5b9e\u975e\u5e38\u91cd\u8981\u554a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6\u662f\u6211\u8fdb\u5165\u5230\u9879\u76ee\uff0c\u7f16\u5199\u4ee3\u7801 import sys print sys. \u5f53\u6211\u6253\u51fa\u90a3\u4e2a . \u65f6\uff0c\u56e0\u4e3a\u6211\u88c5\u4e86\u4ee3\u7801 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-6071","post","type-post","status-publish","format-standard","hentry","category-diary"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=6071"}],"version-history":[{"count":2,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6071\/revisions"}],"predecessor-version":[{"id":6074,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6071\/revisions\/6074"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=6071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=6071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=6071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}