{"id":11347,"date":"2023-05-11T12:15:43","date_gmt":"2023-05-11T16:15:43","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=11347"},"modified":"2023-05-11T12:15:43","modified_gmt":"2023-05-11T16:15:43","slug":"diffing-with-emacs-and-vim","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=11347","title":{"rendered":"Diffing With Emacs and Vim"},"content":{"rendered":"<p>Franco Pasut has an instructive post on how to diff files with Vim and Emacs. Both editors have very nice built-in functions to make diffing files easy. I\u2019ve used them both and can attest to their utility.<\/p>\n<p>Pasut\u2019s post, <a href=\"https:\/\/francopasut.netlify.app\/post\/vimdiff-ediff\/\">Notes on resolving differences between two documents with the built-in resources of Vim and Emacs<\/a>, isn\u2019t a comparison and doesn\u2019t make any value judgments. Rather, it merely shows how to use the two systems. I haven\u2019t used Vimdiff in years but my memory is that it was easier to use than Emacs\u2019 Ediff system.<\/p>\n<p>Regardless of their relative merits, both are easy to use and very powerful. To see this, think about how you would reconcile two files with just the standard Diff program and some random editor. With Vimdiff and Ediff, you see the differences one by one and can choose which variant to keep. With Ediff, you can even edit the file directly.<\/p>\n<p>If you\u2019re not familiar with the two systems, take a look at Pasut\u2019s post. It\u2019s short and tells you more than enough to use either efficiently.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Franco Pasut has an instructive post on how to diff files with Vim and Emacs. Both editors have very nice built-in functions to make diffing files easy. I\u2019ve used them both and can attest to their utility. Pasut\u2019s post, Notes &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=11347\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-11347","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11347"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11347\/revisions"}],"predecessor-version":[{"id":11348,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11347\/revisions\/11348"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}