Is it possible to get use svn in combination with vim to get a series of tab pages which contain a diff of each file? It would be a much better alternative to svn diff | view -, but instead of a linear list of diffs it would use vimdiff.
In the past, I have found a way to do this and get svn diff to open multiple vims for each file edited, but being able to go back and review old files would be very useful. Therefore, given a set of tuples of files S, I need a vim shell command which will open each file in the first position of the tuples of S in a different tab page and diff it with the corresponding file in the second position of the tuples in S.
This can be done with a couple of scripts, and making use of vim’s “server” functionality. The scripts below could be improved a bit, for example it assumes that you want to do this in graphical Vim, and that you don’t want the script to exit until you quit this Vim. Also, the diffs default to using a horizontal split due to using “diffsplit”.
I do it with the following two scripts. Execute the bash script in the directory you want to run the diff in:
The helper script “vim_tab_diff_helper.py” is as follows: