Wednesday, April 7, 2010

Re: multiple diffs

On Apr 7, 10:13 pm, Christian Brabandt <cbli...@256bit.org> wrote:
> Hi viki!
>
> On Mi, 07 Apr 2010, viki wrote:
>
> > I have file containing >20 pairs of pathnames, one pair per line:
>
> >        /path1/to/file1.OLD /path2/to.file1.NEW
> >        etc.
>
> > I need to open vimdiff on multiple pairs of files
> > such that I can switch forward to next pair, backward to
> > previous pair, each time seeing vimdiff of that pair.
> > How can I do it ? Is there a plugin that does such thing ?
>
> Try the attached script. It expects no whitespace in the filenames and 2
> files per line or else it will probably fail.

Many thanks, works great.

I am keeping my copy as multidiff.vim, command named as MultiDiff.

Added checking for TAB character in the file pair line.
If line contains TAB character, splitting by TAB, otherwise at space.
This shall work boths for unix common case, and for windows case
(spaces in filename => make pair line tab-separated).

viki

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

No comments: