﻿{"id":167,"date":"2019-11-20T15:37:30","date_gmt":"2019-11-20T07:37:30","guid":{"rendered":"http:\/\/www.linux-dba.com\/?p=167"},"modified":"2020-07-02T15:59:10","modified_gmt":"2020-07-02T07:59:10","slug":"vim-%e5%a4%9a%e8%a1%8c%e5%89%aa%e5%88%87%e3%80%81%e5%a4%8d%e5%88%b6%e3%80%81%e7%b2%98%e8%b4%b4","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/167\/","title":{"rendered":"vim \u591a\u884c\u526a\u5207\u3001\u590d\u5236\u3001\u7c98\u8d34"},"content":{"rendered":"<p>\u53c2\u8003\u7f51\u57401\uff1a<a href=\"https:\/\/www.runoob.com\/linux\/linux-vim.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.runoob.com\/linux\/linux-vim.html<\/a><\/p>\n<p>\u53c2\u8003\u7f51\u57402\uff1a<a href=\"https:\/\/www.cnblogs.com\/GyForever1004\/p\/8445804.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.cnblogs.com\/GyForever1004\/p\/8445804.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u526a\u5207\u7c7b\uff1ad\u3001x<\/p>\n<p>dd \u5220\u9664\u5149\u6807\u6240\u5728\u884c<\/p>\n<p>n dd \u4ece\u5f53\u524d\u884c\u5220\u9664 n \u884c<\/p>\n<p>dw \u4ece\u5f53\u524d\u4f4d\u7f6e\u5f00\u59cb\uff0c\u5220\u9664\u81f3\u5f53\u524d\u5355\u8bcd\u5c3e<\/p>\n<p>d1G \u5220\u9664\u5149\u6807\u6240\u5728\u5230\u7b2c\u4e00\u884c<\/p>\n<p>dG \u5220\u9664\u5149\u6807\u6240\u5728\u5230\u6700\u540e\u4e00\u884c<\/p>\n<p>d$ \u5220\u9664\u5149\u6807\u6240\u5728\u5230\u6b64\u884c\u6700\u540e\u4e00\u4e2a\u5b57\u7b26<\/p>\n<p>d0 \u5220\u9664\u5149\u6807\u6240\u5728\u5230\u6b64\u884c\u7b2c\u4e00\u4e2a\u5b57\u7b26\u300c\u6570\u5b570\u300d<\/p>\n<p>x \u300cX\u300d \u5411\u540e\u300c\u524d\u300d\u5220\u9664\u4e00\u4e2a\u5b57\u7b26\uff0cx\u76f8\u5f53\u4e8e\u300cdel\u300d\u952e\uff0cX\u76f8\u5f53\u4e8e\u300cbackspace\u300d\u952e<\/p>\n<p>nx \u5411\u540e\u5220\u9664n\u4e2a\u5b57\u7b26<\/p>\n<p>&nbsp;<\/p>\n<p>\u590d\u5236\u7c7b y<\/p>\n<p>yy \u590d\u5236\u5149\u6807\u6240\u5728\u884c<\/p>\n<p>nyy \u590d\u5236\u5149\u6807\u6240\u5728\u81f3\u540e\u9762\u7b2cn\u884c<\/p>\n<p>y1G\u590d\u5236\u5149\u6807\u6240\u5728\u81f3\u7b2c1\u884c\u5185\u5bb9<\/p>\n<p>yG\u590d\u5236\u5149\u6807\u6240\u5728\u81f3\u6700\u540e\u4e00\u884c\u6240\u6709\u884c<\/p>\n<p>y0 \u590d\u5236\u5149\u6807\u6240\u5728\u81f3\u8be5\u884c\u7b2c\u4e00\u4e2a\u5b57\u7b26<\/p>\n<p>y$ \u590d\u5236\u5149\u6807\u6240\u5728\u81f3\u8be5\u884c\u7ed3\u5c3e<\/p>\n<p>&nbsp;<\/p>\n<p>\u7c98\u8d34\u7c7b p,P<\/p>\n<p>p \u4e3a\u5c06\u5df2\u590d\u5236\u7684\u6570\u636e\u5728\u5149\u6807\u4e0b\u4e00\u884c\u8d34\u4e0a\uff0cP \u5219\u4e3a\u8d34\u5728\u6e38\u6807\u4e0a\u4e00\u884c\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u6539\u5199\u7c7b c<\/p>\n<p>c \u91cd\u590d\u5220\u9664\u591a\u4e2a\u6570\u636e\uff0c\u5982\u5411\u4e0b\u5220\u9664 10 \u884c\uff0c\u300c 10cj \u300d<\/p>\n<p>cw \u5220\u9664\u5149\u6807\u6240\u5728\u81f3\u5f53\u524d\u8bcd\u7ed3\u5c3e\uff0c\u5e76\u53ef\u4fee\u6539\u6b64\u5355\u8bcd<\/p>\n<p>&nbsp;<\/p>\n<p>\u5176\u5b83<\/p>\n<p>J \u5c06\u5149\u6807\u6240\u5728\u884c\u4e0e\u4e0b\u4e00\u884c\u5408\u5e76\u4e3a\u4e00\u884c<\/p>\n<p>u \u64a4\u6d88\u64cd\u4f5c<\/p>\n<p>[Ctrl]+r \u91cd\u505a\u4e0a\u4e00\u4e2a\u52a8\u4f5c<\/p>\n<p>. \u91cd\u590d\u4e0a\u4e00\u4e2a\u64cd\u4f5c\uff0c\u5982\u4f60\u60f3\u8981\u91cd\u590d\u5220\u9664\u3001\u91cd\u590d\u8d34\u4e0a\u7b49\u7b49\u52a8\u4f5c\uff0c\u6309\u4e0b\u5c0f\u6570\u70b9\u300c.\u300d\u5c31\u597d\u4e86<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e00\u822c\u6a21\u5f0f\u5207\u6362\u5230\u7f16\u8f91\u6a21\u5f0f<\/p>\n<p>i \u4ece\u5149\u6807\u4f4d\u7f6e\u7f16\u8f91<\/p>\n<p>I \u4ece\u5149\u6807\u6240\u5728\u884c\u9996\u7f16\u8f91<\/p>\n<p>o \u5149\u6807\u6240\u5728\u7684\u4e0b\u4e00\u884c\u63d2\u5165\u4e00\u884c\u5e76\u53ef\u7f16\u8f91<\/p>\n<p>O \u5149\u6807\u6240\u5728\u7684\u4e0a\u4e00\u884c\u63d2\u5165\u4e00\u884c\u5e76\u53ef\u7f16\u8f91<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\u7f51\u57401\uff1ahttps:\/\/www.runoob.com\/linux\/linux-vim.html \u53c2\u8003\u7f51\u57402 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[3,28],"_links":{"self":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/167"}],"collection":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":1,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":277,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions\/277"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}