I use vimdiff as my difftool with git.
Let's say that I've changed twelve files. The problem is that sometimes I run git diff
and around the fourth or fifth file I see something that I want to edit/change. Sometimes I need to make a few more changes outside of this. The problem is that I can't just :qa
and go back to hacking, because there are six or seven more diffs that pop up in vimdiff. It gets really tedious to :qa
all of these files without looking every time that I want to abort a git diff.
Is there any way to set up vimdiff as git's difftool such that all of the diffs open in the same vim instance, e.g. in separate tabs?
:tabe ~/.vimrc
followed by:bd
is a nice combo.