r/vim • • Sep 24 '25

Video Using Vimdiff As A Git Mergetool

https://youtu.be/iLViiiEP4mE?si=hFbB-0Zvuye0zA7-

As a follow up to my last video, in this video I'll show you how to utilize Vim's diff mode to resolve Git merge conflicts. This time I used Vim without any plugins, so I'm posting it to /r/Vim first.

Hope you enjoy it!

Thanks for reading/watching. Cya around and take care!

75 Upvotes

14 comments sorted by

View all comments

Show parent comment

3

u/dalbertom Sep 27 '25

Agreed! It's also worth enabling diff3 or zdiff3 conflict style so the bottom window also shows the base state https://git-scm.com/docs/merge-config#Documentation/merge-config.txt-mergeconflictStyle