{"id":5897,"date":"2013-11-26T19:50:17","date_gmt":"2013-11-26T11:50:17","guid":{"rendered":"http:\/\/jpuyy.com\/?p=5897"},"modified":"2013-11-26T19:50:17","modified_gmt":"2013-11-26T11:50:17","slug":"vim-tabs","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=5897","title":{"rendered":"vim tabs"},"content":{"rendered":"<p>\u6587\u672c\u7f16\u8f91\u5668\u57fa\u672c\u90fd\u6709tab\u540c\u65f6\u7f16\u8f91\u591a\u4e2a\u6587\u4ef6\uff0cvim\u4e5f\u4e0d\u4f8b\u5916\u3002\u751a\u81f3\u529f\u80fd\u66f4\u5f3a\u5927\u3002<\/p>\n<p>\u4ee5\u4f8b\u5b50\u6765\u8bf4vim tab\u7684\u4f7f\u7528\u65b9\u6cd5\uff0cnginx\u7684\u914d\u7f6e\u6587\u4ef6\u5f88\u5178\u578b\uff0c\u5c31\u4ee5\u5b83\u4e3a\u4f8b\u3002<\/p>\n<p>\u540c\u65f6\u7f16\u8f91\u51e0\u4e2a\u6587\u4ef6\uff0c\u53ef\u4ee5\u8fd9\u6837\uff0c\u6ce8\u610f-p\u53c2\u6570\uff0c\u8fd9\u662f\u4ee5tab\u663e\u793a\u7684\u5173\u952e<\/p>\n<pre>vim -p nginx.conf fastcgi_params win-utf<\/pre>\n<p>\u8fd9\u65f6\u4f1a\u663e\u793a3\u4e2a\u6807\u7b7e<\/p>\n<p>\u5982\u679c\u8fd9\u65f6\u8981\u65b0\u52a0\u4e00\u4e2a\u6807\u7b7e\uff0c\u8f93\u5165<\/p>\n<p>:tabedit \u7b80\u5199 :tabe<\/p>\n<p>\u5982\u679c\u8981\u5173\u95ed\u5f53\u524d\u6807\u7b7e\uff0c\u9664\u4e86\u53ef\u4ee5\u5e38\u7528\u7684vim\u9000\u51fa:wq\u5916\uff0c\u53ef\u4ee5\u4f7f\u7528<\/p>\n<p>:tabclose \u7b80\u5199 :tabc<\/p>\n<p>\u663e\u793a\u591a\u4e2atab\u7684\u5217\u8868<\/p>\n<p>:tabs<\/p>\n<p>\u6807\u7b7e\u7684\u79fb\u52a8<\/p>\n<pre>:tabm 0       move current tab to first \u79fb\u52a8\u5230\u7b2c\u4e00\u4e2a\r\n:tabm         move current tab to last \u79fb\u52a8\u5230\u6700\u540e\u4e00\u4e2a\r\n:tabm {i}     move current tab to position i+1 \u5411\u540e\u79fb\u52a8i+1<\/pre>\n<p>\u6807\u7b7e\u7684\u5207\u6362<\/p>\n<pre>:tabn         go to next tab \u8df3\u5230\u4e0b\u4e00\u4e2atab\r\n:tabp         go to previous tab \u8df3\u5230\u4e0a\u4e00\u4e2atab\r\n:tabfirst     go to first tab \u8df3\u5230\u6700\u524d\r\n:tablast      go to last tab \u8df3\u5230\u6700\u540e<\/pre>\n<p>\u4e0a\u9762\u7684\u64cd\u4f5c\u592a\u6162\uff0c\u5728normal\u6a21\u5f0f<\/p>\n<pre>gt            go to next tab \u8df3\u5230\u4e0b\u4e00\u4e2atab\r\ngT            go to previous tab \u8df3\u5230\u4e0a\u4e00\u4e2atab\r\n{i}gt         go to tab in position i \u8df3\u5230\u7b2ci\u4e2atab<\/pre>\n<p>\u4f7f\u7528\u5feb\u6377\u952e\u5219\u5230\u4e3a\u5feb\u901f<\/p>\n<pre>Ctrl-PgDn     go to next tab \u8df3\u5230\u4e0b\u4e00\u4e2atab\r\nCtrl-PgUp     go to previous tab \u8df3\u5230\u4e0a\u4e00\u4e2atab<\/pre>\n<p>\u5f53\u7136\u53ef\u4ee5\u5728vimrc\u4e2d\u89c4\u5b9a\u66f4\u591a\u7684\u5feb\u6377\u952e\u53d6\u4ee3\u4e0a\u9762\u7684\u64cd\u4f5c\u3002\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u94fe\u63a5\u3002<\/p>\n<p><a href=\"http:\/\/vim.wikia.com\/wiki\/Using_tab_pages\">http:\/\/vim.wikia.com\/wiki\/Using_tab_pages<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u672c\u7f16\u8f91\u5668\u57fa\u672c\u90fd\u6709tab\u540c\u65f6\u7f16\u8f91\u591a\u4e2a\u6587\u4ef6\uff0cvim\u4e5f\u4e0d\u4f8b\u5916\u3002\u751a\u81f3\u529f\u80fd\u66f4\u5f3a\u5927\u3002 \u4ee5\u4f8b\u5b50\u6765\u8bf4vim tab\u7684\u4f7f\u7528\u65b9\u6cd5\uff0cnginx\u7684\u914d\u7f6e\u6587\u4ef6\u5f88\u5178\u578b\uff0c\u5c31\u4ee5\u5b83\u4e3a\u4f8b\u3002 \u540c\u65f6\u7f16\u8f91\u51e0\u4e2a\u6587\u4ef6\uff0c\u53ef\u4ee5\u8fd9\u6837\uff0c\u6ce8\u610f-p\u53c2\u6570\uff0c\u8fd9\u662f\u4ee5tab\u663e\u793a\u7684\u5173\u952e vim -p nginx.conf fastcgi_params win-utf \u8fd9\u65f6\u4f1a\u663e\u793a3\u4e2a\u6807\u7b7e \u5982\u679c\u8fd9\u65f6\u8981\u65b0\u52a0\u4e00\u4e2a\u6807\u7b7e\uff0c\u8f93\u5165 :tabedit \u7b80\u5199 :tabe \u5982\u679c\u8981\u5173\u95ed\u5f53\u524d\u6807\u7b7e\uff0c\u9664\u4e86\u53ef\u4ee5\u5e38\u7528\u7684vim\u9000\u51fa:wq\u5916\uff0c\u53ef\u4ee5\u4f7f\u7528 :tabclose \u7b80\u5199 :tabc \u663e\u793a\u591a\u4e2atab\u7684\u5217\u8868 :tabs \u6807\u7b7e\u7684\u79fb\u52a8 :tabm 0 move current tab to first \u79fb\u52a8\u5230\u7b2c\u4e00\u4e2a :tabm move current tab to last \u79fb\u52a8\u5230\u6700\u540e\u4e00\u4e2a :tabm {i} move current tab to position i+1 \u5411\u540e\u79fb\u52a8i+1 \u6807\u7b7e\u7684\u5207\u6362 :tabn go to next tab \u8df3\u5230\u4e0b\u4e00\u4e2atab :tabp go to [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,94],"tags":[],"class_list":["post-5897","post","type-post","status-publish","format-standard","hentry","category-life","category-vim"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5897"}],"version-history":[{"count":2,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5897\/revisions"}],"predecessor-version":[{"id":5902,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/5897\/revisions\/5902"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}