{"id":6733,"date":"2020-03-18T14:24:04","date_gmt":"2020-03-18T06:24:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6733"},"modified":"2022-05-04T15:16:37","modified_gmt":"2022-05-04T07:16:37","slug":"vi","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/vi","title":{"rendered":"vi\u547d\u4ee4 – \u6587\u672c\u7f16\u8f91\u5668"},"content":{"rendered":"\n

vi\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u7f16\u8f91\u6587\u672c\u5185\u5bb9\uff0c\u662fLinux\u7cfb\u7edf\u5b57\u7b26\u754c\u9762\u4e0b\u6700\u5e38\u7528\u7684\u6587\u672c\u7f16\u8f91\u5de5\u5177\uff0c\u80fd\u591f\u7f16\u8f91\u4efb\u4f55\u7684ASCII\u683c\u5f0f\u6587\u4ef6\uff0c\u5bf9\u5185\u5bb9\u8fdb\u884c\u521b\u5efa\u3001\u67e5\u627e\u3001\u66ff\u6362\u3001\u4fee\u6539\u3001\u5220\u9664\u3001\u590d\u5236\u3001\u7c98\u8d34\u7b49\u64cd\u4f5c\u3002\u7f16\u5199\u6587\u4ef6\u65f6\uff0c\u65e0\u9700\u62c5\u5fc3\u76ee\u6807\u6587\u4ef6\u662f\u5426\u5b58\u5728\uff0c\u82e5\u4e0d\u5b58\u5728\u5219\u4f1a\u81ea\u52a8\u5728\u5185\u5b58\u4e2d\u521b\u5efa\uff0c\u968f\u4fdd\u5b58\u64cd\u4f5c\u8f93\u51fa\u5230\u786c\u76d8\u4e2d\u3002<\/p>\n\n\n\n

\u7531\u4e8evi\/vim\u7f16\u8f91\u5668\u6df1\u5165\u5b66\u4e60\u7684\u96be\u5ea6\u8f83\u5927\uff0c\u65e0\u6cd5\u901a\u8fc7\u5355\u4e00\u8bcd\u6761\u4e3a\u8bfb\u8005\u8bb2\u900f\uff0c\u5982\u60f3\u719f\u7ec3\u4f7f\u7528\u8bf7\u53c2\u9605\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7b2c\u56db\u7ae04.1\u5c0f\u8282<\/a>\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>vi [\u53c2\u6570] \u6587\u4ef6<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-s<\/td>\u9759\u9ed8\u6a21\u5f0f<\/td><\/tr>
-- -cmd<\u547d\u4ee4><\/td>\u52a0\u8f7d\u4efb\u4f55vimrc\u6587\u4ef6\u4e4b\u524d\u6267\u884c\u6307\u5b9a\u547d\u4ee4<\/td><\/tr>
-R<\/td>\u53ea\u8bfb\u6a21\u5f0f<\/td><\/tr>
-v<\/td>Vi\u6a21\u5f0f<\/td><\/tr>
-e<\/td>Ex\u6a21\u5f0f<\/td><\/tr>
-y<\/td>\u7b80\u6613\u6a21\u5f0f<\/td><\/tr>
-c<\u547d\u4ee4><\/td>\u52a0\u8f7d\u7b2c\u4e00\u4e2a\u6587\u4ef6\u4e4b\u540e\u6267\u884c\u6307\u5b9a\u547d\u4ee4<\/td><\/tr>
-s<\u811a\u672c\u8f93\u5165\u6587\u4ef6><\/td>\u4ece\u6307\u5b9a\u811a\u672c\u8f93\u5165\u6587\u4ef6\u9605\u8bfb\u666e\u901a\u6a21\u5f0f\u547d\u4ee4<\/td><\/tr>
-w<\u811a\u672c\u8f93\u51fa\u6587\u4ef6><\/td>\u8ffd\u52a0\u6240\u6709\u7c7b\u578b\u7684\u547d\u4ee4\u5199\u5165\u811a\u672c\u8f93\u51fa\u6587\u4ef6<\/td><\/tr>
-W<\u811a\u672c\u8f93\u51fa\u6587\u4ef6> <\/td>\u5199\u5165\u6240\u6709\u7c7b\u578b\u7684\u547d\u4ee4\u5230\u6307\u5b9a\u811a\u672c\u8f93\u51fa\u6587\u4ef6<\/td><\/tr>
+<\u884c\u6570><\/td>\u4ece\u6307\u5b9a\u884c\u5f00\u59cb<\/td><\/tr>
-- -noplugin<\/td>\u4e0d\u8981\u52a0\u8f7d\u63d2\u4ef6\u811a\u672c<\/td><\/tr>
-p<\u6570\u91cf><\/td>\u6253\u5f00\u6307\u5b9a\u6570\u91cf\u7684\u6807\u7b7e\u9875\uff08\u5e26\u6587\u4ef6\u540d\uff09<\/td><\/tr>
-r<\u6587\u4ef6\u540d><\/td>\u6062\u590d\u5d29\u6e83\u7684\u4f1a\u8bdd<\/td><\/tr>
-L<\/td>\u7b49\u540c\u4e8e-r<\/td><\/tr>
-r<\/td>\u5217\u51fa\u4ea4\u6362\u6587\u4ef6\u5e76\u9000\u51fa<\/td><\/tr>
-u<vimrc><\/td>\u719f\u7528\u6307\u5b9avimrc\uff0c\u800c\u4e0d\u662f.vimrc<\/td><\/tr>
-T<\u7ec8\u7aef><\/td>\u8bbe\u7f6e\u4f7f\u7528\u6307\u5b9a\u7ec8\u7aef<\/td><\/tr>
-o<\u6570\u91cf><\/td>\u6253\u5f00\u6307\u5b9a\u6570\u91cf\u7684\u7a97\u53e3<\/td><\/tr>
-n<\/td>\u4e0d\u4f7f\u7528\u4ea4\u6362\u6587\u4ef6\uff0c\u53ea\u7528\u5185\u5b58<\/td><\/tr>
-Z<\/td>\u53d7\u9650\u6a21\u5f0f<\/td><\/tr>
-m<\/td>\u4e0d\u5141\u8bb8\u4fee\u6539\uff08\u5199\u5165\uff09<\/td><\/tr>
-b<\/td>\u4e8c\u8fdb\u5236\u6a21\u5f0f<\/td><\/tr>
-M<\/td>\u5728\u6587\u672c\u4e2d\u4e0d\u5141\u8bb8\u4fee\u6539<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u521b\u5efa\u67d0\u4e2a\u6587\u4ef6\uff0c\u5e76\u8fdb\u884c\u7f16\u5199\u64cd\u4f5c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vi anaconda-ks.cfg<\/strong><\/pre>\n\n\n\n

\u6253\u5f00\u67d0\u4e2a\u5df2\u5b58\u5728\u7684\u6587\u4ef6\uff0c\u4ece\u7b2c6\u884c\u5f00\u59cb\u7f16\u5199\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vi +6 anaconda-ks.cfg<\/strong><\/pre>\n\n\n\n

\u6253\u5f00\u67d0\u4e2a\u5df2\u5b58\u5728\u7684\u6587\u4ef6\uff0c\u4ee5\u53ea\u8bfb\u6a21\u5f0f\u8fdb\u5165\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# vi +R anaconda-ks.cfg<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

vi\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u7f16\u8f91\u6587\u672c\u5185\u5bb9\uff0c\u662fLinux\u7cfb\u7edf\u5b57\u7b26\u754c\u9762\u4e0b\u6700\u5e38\u7528\u7684\u6587\u672c\u7f16\u8f91\u5de5\u5177\uff0c\u80fd\u591f\u7f16\u8f91\u4efb\u4f55\u7684ASCII\u683c\u5f0f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6733"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6733"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6733\/revisions"}],"predecessor-version":[{"id":9240,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6733\/revisions\/9240"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}