{"id":4259,"date":"2019-07-26T15:35:46","date_gmt":"2019-07-26T07:35:46","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4259"},"modified":"2019-07-26T23:44:33","modified_gmt":"2019-07-26T15:44:33","slug":"vimdiff","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/vimdiff","title":{"rendered":"vimdiff\u547d\u4ee4 – \u540c\u65f6\u7f16\u8f91\u591a\u4e2a\u6587\u4ef6"},"content":{"rendered":"\n
\u7eaf\u6587\u672c\u6587\u4ef6\u6bd4\u8f83\u548c\u5408\u5e76\u5de5\u5177\u4e00\u76f4\u662f\u8f6f\u4ef6\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u6bd4\u8f83\u91cd\u8981\u7684\u7ec4\u6210\u90e8\u5206\uff0cvimdiff \u80fd\u591f\u5728\u6bd4\u8f83\u51fa\u6765\u7684\u591a\u5904\u5dee\u5f02\u4e4b\u95f4\u5feb\u901f\u5b9a\u4f4d\uff0c\u5f88\u5bb9\u6613\u7684\u8fdb\u884c\u6587\u4ef6\u5408\u5e76\u64cd\u4f5c\u3002\u5728\u9700\u8981\u5feb\u901f\u6bd4\u8f83\u548c\u5408\u5e76\u5c11\u91cf\u6587\u4ef6\u7684\u65f6\u5019\uff0cvimdiff\u662f\u5f88\u597d\u7684\u9009\u62e9\u3002\u4f7f\u7528vimdiff\u7684\u524d\u63d0\u662f\u4fdd\u8bc1\u7cfb\u7edf\u4e2d\u7684diff\u547d\u4ee4\u662f\u53ef\u7528\u7684\uff0cvim\u7684diff\u6a21\u5f0f\u662f\u4f9d\u8d56\u4e8ediff\u547d\u4ee4\u7684\u3002
\n\u542f\u52a8\u65b9\u6cd5\uff1a1. vimdiff file1 file2 \u2026 2. vim -d file1 file2 \u2026<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>vimdiff [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u540c\u65f6\u7f16\u8f912\u4e2a\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u540c\u65f6\u7f16\u8f913\u4e2a\u6587\u4ef6\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" \u7eaf\u6587\u672c\u6587\u4ef6\u6bd4\u8f83\u548c\u5408\u5e76\u5de5\u5177\u4e00\u76f4\u662f\u8f6f\u4ef6\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u6bd4\u8f83\u91cd\u8981\u7684\u7ec4\u6210\u90e8\u5206\uff0cvimdiff \u80fd\u591f\u5728\u6bd4\u8f83\u51fa\u6765\u7684\u591a\u5904\u5dee\u5f02\u4e4b\u95f4\u5feb […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4259"}],"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=4259"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4259\/revisions"}],"predecessor-version":[{"id":4308,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4259\/revisions\/4308"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}w<\/td> \u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\uff0c\u6309Ctrl + w\u5728\u591a\u4e2a\u6587\u4ef6\u4e4b\u95f4\u8df3\u8f6c<\/td><\/tr> u<\/td> \u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\uff0c\u6309u\u6267\u884c\u64a4\u9500\u64cd\u4f5c<\/td><\/tr> qa<\/td> \u540c\u65f6\u9000\u51fa\u591a\u4e2a\u6587\u4ef6<\/td><\/tr> wqa<\/td> \u4fdd\u5b58\u5e76\u540c\u65f6\u9000\u51fa\u591a\u4e2a\u6587\u4ef6 <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# vimdiff file1 file2 \n[root@linuxcool ~]# vim -d file1 file2 <\/pre>\n\n\n\n
[root@linuxcool ~]# vimdiff file1 file2 file3\n[root@linuxcool ~]# vim -d file1 file2 file3<\/pre>\n\n\n\n