I have a MacVim installation on my OSX machine, so the default Vim application (i.e.: / usr / bin / vim) is actually a symbolic link to the version of Vim command line that ships with MacVim (i.e.: / Applications / MacVim.app/MacOS/vim), as it provides some key advantages over the Vim stock that comes with OSX10.6.
I periodically need to prepare the difference between a set of files and export it to a colorful side-by-side view of an HTML file. This is usually achieved by:
vim -d file1 file2 (Within Vim): toHTML
The problem is that I have to manually check the HEAD revision and the specific revision of the two sets of files and perform this operation for each pair of files. It takes a lot of time.
Is it possible for the results of the svn diff be transferred to Vim, so I can have a colorful parallel view for the entire directory (i.e.: PWD), and not just look at the unified diff?
I found several Vim scripts and bash scripts that try to achieve this, but there are two key problems:
I want to explicitly call vim -d as a diff tool, not vimdiff , since the MacVim application does not ship with vimdiff , so I would use the wrong version of Vim when the application starts
I want multifactor diffs to be generated all over the directory recursively, and not just one or two files at a time.
If this is not possible, perhaps I will create a bash script that will more or less achieve this, but I would like to avoid building a hacked / unreliable script if there is a more effective way to do this.
Thanks.
source share