Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use vimdiff

📅 2018-Aug-31 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ diff, merge, vim, vimdiff ⬩ 📚 Archive

Vim can be used as a diff and merge tool. While it cannot match the beauty and power of GUI programs like Meld, it is immensely useful to diff and merge over a SSH session.

$ vimdiff 1.cpp 2.cpp
$ vim -d 1.cpp 2.cpp 3.cpp

Tried with: Vim 7.4 and Ubuntu 16.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧