{"id":4247,"date":"2020-03-17T17:41:09","date_gmt":"2020-03-17T09:41:09","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=4247"},"modified":"2021-08-07T01:59:33","modified_gmt":"2021-08-06T17:59:33","slug":"%e5%b7%a5%e5%85%b7%e7%af%87-%e6%95%99%e4%bd%a0%e5%bc%84%e4%b8%80%e4%b8%aa%e9%85%b7%e7%82%ab%e7%9a%84-python-vim%e7%bc%96%e8%be%91%e5%99%a8-%e8%ae%a9%e4%bd%a0%e7%9a%84-vim-%e6%94%af","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=4247","title":{"rendered":"\u5de5\u5177\u7bc7 | \u6559\u4f60\u5f04\u4e00\u4e2a\u9177\u70ab\u7684 Python Vim\u7f16\u8f91\u5668 \u2014\u2014\u8ba9\u4f60\u7684 Vim \u652f\u6301 Python \u73af\u5883"},"content":{"rendered":"\n<p>\u4e0a\u4e00\u7bc7\u5c0f\u5e05b\u7ed9\u8bf4\u4e86\u4e0b Vim \u7684\u63d2\u4ef6\u5b89\u88c5\u548c Vim \u7684\u7b80\u5355\u914d\u7f6e\uff0c\u4e0d\u8fc7\u6709\u4e9b\u5c0f\u4f19\u4f34\u7684 Vim \u53ef\u80fd\u4e0d\u652f\u6301 Python\u3002<\/p>\n\n\n\n<h2>\u5982\u4f55\u67e5\u770b\u4f60\u7684 Vim \u662f\u5426\u652f\u6301 Python \u5462\uff1f<\/h2>\n\n\n\n<h3>1\u3001\u4f60\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 vim &#8211; -version \u67e5\u770b\uff1a<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"709\" height=\"425\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-54-10.png\" alt=\"\" class=\"wp-image-4248\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-54-10.png 709w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-54-10-300x180.png 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u6ca1\u6709\u770b\u5230 +Python \u7684\u5b57\u6837\uff0c\u5c31\u8bf4\u660e\u4f60\u7684 Vim \u4e0d\u652f\u6301 Python\u3002<\/p>\n\n\n\n<h3>2\u3001\u901a\u8fc7 echo \u67e5\u770b\uff1a<\/h3>\n\n\n\n<p>\u4f60\u4e5f\u53ef\u4ee5\u8fdb\u5165 vim \u4e2d\uff0c\u4f7f\u7528 echo has(&#8216;python3&#8217;) \u67e5\u770b\uff1a<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"722\" height=\"458\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-57-41.png\" alt=\"\" class=\"wp-image-4249\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-57-41.png 722w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-57-41-300x190.png 300w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u8fd9\u65f6\u5019\u56de\u8f66\uff0c\u5982\u679c\u8f93\u51fa\u7684\u662f 1 \u5c31\u8bf4\u660e\u652f\u6301 Python\uff0c\u5982\u679c\u8f93\u51fa\u7684\u662f 0 \u5c31\u8bf4\u660e\u4e0d\u652f\u6301\uff1a<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"727\" height=\"456\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-57-56.png\" alt=\"\" class=\"wp-image-4250\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-57-56.png 727w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-17-16-57-56-300x188.png 300w\" sizes=\"(max-width: 727px) 100vw, 727px\" \/><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2>\u91cd\u88c5 Vim<\/h2>\n\n\n\n<p>\u5982\u679c\u4f60\u53d1\u73b0\u4f60\u7684 Vim \u4e0d\u652f\u6301 Python \uff0c\u90a3\u4e48\u90a3\u4e9b Python \u5199\u7684\u63d2\u4ef6\u4f60\u662f\u6ca1\u529e\u6cd5\u4f7f\u7528\u7684\uff0c\u6240\u4ee5\u9700\u8981\u91cd\u88c5\u4e0b Vim\u3002<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D4247\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u8fd9\u4e2a\u6587\u4ef6\u5c31\u662f\u4e13\u95e8\u7528\u6765\u914d\u7f6e Vim \u7684\uff0c\u73b0\u5728\u4f60\u7684 vimrc \u7a7a\u7a7a\u5982\u4e5f\uff0c\u4f60\u53ef\u4ee5\u5148\u53bb\u628a\u63d2\u4ef6\u5b89\u88c5\u4e0a\uff0c\u5177\u4f53\u770b\u4e0a\u4e00\u7bc7\uff1a<a href=\"https:\/\/vip.fxxkpython.com\/?p=4164\">\u5de5\u5177\u7bc7 | \u6559\u4f60\u5f04\u4e00\u4e2a\u9177\u70ab\u7684 Python Vim\u7f16\u8f91\u5668 \u2014\u2014\u63d2\u4ef6\u7684\u5b89\u88c5\u3002<\/a><\/p>\n\n\n\n<p>Vim \u9664\u4e86\u5b89\u88c5\u63d2\u4ef6\u4e4b\u5916\uff0c\u672c\u8eab\u4e5f\u53ef\u4ee5\u505a\u4e00\u4e9b\u914d\u7f6e\uff0c\u6bd4\u5982\u5feb\u6377\u952e\u8bbe\u7f6e\uff0c\u8bed\u6cd5\uff0c\u4e3b\u9898\u7f8e\u5316\u7b49\uff0c\u5173\u4e8e Vim \u5de5\u5177\u7bc7\u6211\u4f1a\u5199\u591a\u51e0\u7bc7\u6765\u8bf4\u660e\u5b83\u7684\u914d\u7f6e\u4f7f\u7528\uff0c\u4f60\u79c1\u5e95\u4e0b\u53ef\u4ee5\u591a\u719f\u7ec3\u719f\u7ec3 Vim \u7684\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u7bc7\u5c0f\u5e05b\u7ed9\u8bf4\u4e86\u4e0b Vim \u7684\u63d2\u4ef6\u5b89\u88c5\u548c Vim \u7684\u7b80\u5355\u914d\u7f6e\uff0c\u4e0d\u8fc7\u6709\u4e9b\u5c0f\u4f19\u4f34\u7684 Vim \u53ef\u80fd\u4e0d\u652f\u6301 Python\u3002 \u5982\u4f55\u67e5\u770b\u4f60\u7684 Vim \u662f\u5426\u652f\u6301 Python \u5462\uff1f 1\u3001\u4f60\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 vim &#8211; -version \u67e5\u770b\uff1a \u5982\u679c\u4f60\u6ca1\u6709&hellip;<\/p>\n","protected":false},"author":1,"featured_media":4254,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[343],"tags":[206,350,347,340,349,348],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4247"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4247"}],"version-history":[{"count":4,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4247\/revisions"}],"predecessor-version":[{"id":6554,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4247\/revisions\/6554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/4254"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}