{"id":4414,"date":"2020-03-31T23:04:04","date_gmt":"2020-03-31T15:04:04","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=4414"},"modified":"2020-03-31T23:04:06","modified_gmt":"2020-03-31T15:04:06","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-%e5%9c%a8-vim-%e4%b8%ad%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=4414","title":{"rendered":"\u5de5\u5177\u7bc7 | \u6559\u4f60\u5f04\u4e00\u4e2a\u9177\u70ab\u7684 Python Vim\u7f16\u8f91\u5668 \u2014\u2014\u5728 Vim \u4e2d\u5b9e\u73b0 Python \u6e90\u7801\u7684\u8df3\u8f6c"},"content":{"rendered":"\n<p>\u5728\u4e00\u822c\u7684\u7f16\u8f91\u5668\u91cc\u9762\uff0c\u5982\u679c\u4f60\u60f3\u8981\u770b\u67d0\u4e2a\u65b9\u6cd5\u7684\u5177\u4f53\u5b9e\u73b0\uff0c\u4f60\u53ef\u4ee5\u6309\u4f4f Ctrl \u7136\u540e\u9f20\u6807\u70b9\u51fb\u76f8\u5e94\u7684\u65b9\u6cd5\u540d\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u8df3\u8f6c\u5230\u6e90\u7801\u7684\u5b9e\u73b0\u4e86\u3002\u4f46\u662f\u5728 Vim \u4e2d\u8981\u5b9e\u73b0\u6e90\u7801\u7684\u8df3\u8f6c\uff0c\u9700\u8981\u914d\u7f6e\u4e00\u4e0b\u3002<\/p>\n\n\n\n<h2>\u901a\u8fc7 Vim \u7684 tags \u65b9\u5f0f\u5b9e\u73b0<\/h2>\n\n\n\n<p>\u5728 Vim \u4e2d\u6709\u4e2a tags \u529f\u80fd\uff0c\u53ef\u4ee5\u901a\u8fc7\u5feb\u6377\u952e ctrl + ] \u5feb\u901f\u8df3\u8f6c\u5230 tag \u4e2d\u7684\u5177\u4f53\u5185\u5bb9\u4e2d\u53bb\u3002\u4e0d\u8fc7\u5728\u6b64\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6e\u5982\u4e0b\u4e24\u70b9\uff1a<\/p>\n\n\n\n<ul><li>1\u3001python \u751f\u6210 tag<\/li><li>2\u3001\u5728 vim \u4e2d tag \u6587\u4ef6\u7684\u4f4d\u7f6e<\/li><\/ul>\n\n\n\n<p>\u5982\u4f55\u751f\u6210 Python \u7684 tag \u6587\u4ef6\u5462\uff1f\u5176\u5b9e\u5728\u4f60\u5b89\u88c5\u5b8c Python \u7684\u65f6\u5019\uff0c\u5728\u91cc\u9762\u5c31\u6709\u4e00\u4e2a ptags.py \u6587\u4ef6\uff0c\u5b83\u5c31\u662f\u4e13\u95e8\u8ba9\u4f60\u751f\u6210 Python \u7684 tag \u6587\u4ef6\u7684\uff0c\u4f4d\u4e8e <a href=\"https:\/\/github.com\/python\/cpython\/blob\/master\/Tools\/scripts\/ptags.py\">\/Tools\/scripts\/ptags.py \uff1a<\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"781\" height=\"900\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-31-19-39-28.png\" alt=\"\" class=\"wp-image-4416\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-31-19-39-28.png 781w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-31-19-39-28-260x300.png 260w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-31-19-39-28-768x885.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Screenshot-from-2020-03-31-19-39-28-769x886.png 769w\" sizes=\"(max-width: 781px) 100vw, 781px\" \/><\/figure><\/div>\n\n\n\n<p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u811a\u672c\uff0c\u5c06\u7cfb\u7edf\u4e2d\u7684 py \u6587\u4ef6 append \u5230 tag \u4e2d\u53bb\u3002<\/p>\n\n\n\n<h3 id=\"mce_11\">\u5c06 py \u6587\u4ef6\u5bfc\u5165 tags<\/h3>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u5c06\u4f60\u4e0b\u8f7d\u7684 Python \u4e2d\u7684 py \u6587\u4ef6\u8fc7\u6ee4\u51fa\u6765\uff0c\u7136\u540e\u6267\u884c ptags.py:<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%3D4414\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1364\" height=\"692\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Peek-2020-03-31-22-57.gif\" alt=\"\" class=\"wp-image-4424\"\/><\/figure><\/div>\n\n\n\n<p>\u4f7f\u7528 <em>CTRL + I \/ Ctrl + O <\/em>\u53ef\u4ee5\u5feb\u901f\u5207\u6362\u9875\u9762\u54e6\u3002<\/p>\n\n\n\n<p>ok\uff0c\u4ee5\u4e0a\u5c31\u662f\u4f7f\u7528 vim \u5bf9\u4ee3\u7801\u5207\u6362\u7684\u65b9\u5f0f\uff0c\u5982\u679c\u4f60\u521a\u4f7f\u7528 Vim \u4e0d\u4e45\uff0c\u5efa\u8bae\u4f7f\u7528\u7b2c\u4e8c\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u76f8\u5bf9\u5bb9\u6613\u4e00\u4e9b\uff0c\u5f53\u7136\uff0c\u591a\u6298\u817e\u4e5f\u662f\u4e00\u79cd\u5b66\u4e60\u80fd\u529b\u7684\u63d0\u5347\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e00\u822c\u7684\u7f16\u8f91\u5668\u91cc\u9762\uff0c\u5982\u679c\u4f60\u60f3\u8981\u770b\u67d0\u4e2a\u65b9\u6cd5\u7684\u5177\u4f53\u5b9e\u73b0\uff0c\u4f60\u53ef\u4ee5\u6309\u4f4f Ctrl \u7136\u540e\u9f20\u6807\u70b9\u51fb\u76f8\u5e94\u7684\u65b9\u6cd5\u540d\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u8df3\u8f6c\u5230\u6e90\u7801\u7684\u5b9e\u73b0\u4e86\u3002\u4f46\u662f\u5728 Vim \u4e2d\u8981\u5b9e\u73b0\u6e90\u7801\u7684\u8df3\u8f6c\uff0c\u9700\u8981\u914d\u7f6e\u4e00\u4e0b\u3002 \u901a\u8fc7 Vim \u7684 tags \u65b9\u5f0f\u5b9e\u73b0 \u5728 Vim \u4e2d\u6709\u4e2a tags &hellip;<\/p>\n","protected":false},"author":1,"featured_media":4425,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[343],"tags":[19,374,376,375,373,377],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4414"}],"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=4414"}],"version-history":[{"count":3,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4414\/revisions"}],"predecessor-version":[{"id":4426,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4414\/revisions\/4426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/4425"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}