How can I view multiple git diffs side by side in vim
Posted
by Pete Hodgson
on Stack Overflow
See other posts from Stack Overflow
or by Pete Hodgson
Published on 2010-03-11T19:34:56Z
Indexed on
2010/03/11
19:39 UTC
Read the original article
Hit count: 374
I'd like to be able to run a command that opens up a git diff in vim, with a tab for each file in the diff set.
So if for example I've changed files foo.txt and bar.txt in my working tree and I ran the command I would see vim open with two tabs. The first tab would contain a side-by-side diff between foo.txt in my working tree and foo.txt in the repository, and the second tab would contain a side-by-side diff for bar.txt.
Anyone got any ideas?
© Stack Overflow or respective owner