Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

visual diff

63 views
Skip to first unread message

cr...@yahoo.com

unread,
May 9, 2000, 3:00:00 AM5/9/00
to
I'm looking for a way to do a side by side visual diff in Vim. I saw a
post about that here at one time and tried it but couldn't get it to
work. Now I have a real need to do this and was wondering if anyone
knows of a way to do it.

Thanks, in advance,
Carson

--
Carson R. Wilcox
Senior Architect
DMR Consulting Group
cr...@yahoo.com


Sent via Deja.com http://www.deja.com/
Before you buy.

Steve Mading

unread,
May 10, 2000, 3:00:00 AM5/10/00
to
cr...@yahoo.com wrote:
: I'm looking for a way to do a side by side visual diff in Vim. I saw a

: post about that here at one time and tried it but couldn't get it to
: work. Now I have a real need to do this and was wondering if anyone
: knows of a way to do it.

Go to the directory where vim has all its shared files, for example
it might be called "/usr/share/vim". In that directory, look for
a directory called "tools". In there is a shell script called
"vimdiff". It does this. {disclaimer: This is where I found it
on a recent install of Redhat 6.2, which comes with Vim 5.6.11.
I can't say if this would be similar for other setups.}

I tried it and it wasn't that great. I still prefer "xdiff" for
that sort of thing, but you can try it and make your own judgement
call.

(I Just started using vim 5.6.11 after several years of using
vim 4.something. Wow there's been a lot of good stuff added
while I wasn't looking.)


--
-- ------------------------------------------------------------------
Steven L. Mading at BioMagResBank (BMRB). UW-Madison
Programmer/Analyst/(acting SysAdmin) mailto:mad...@bmrb.wisc.edu
B1108C, Biochem Addition / 433 Babcock Dr / Madison, WI 53706-1544

Chun

unread,
May 10, 2000, 3:00:00 AM5/10/00
to
In article <8favgl$omq$1...@news.doit.wisc.edu>,


You can try "tkdiff" in UNIX.
It works pretty well too.

Chun

Woody Jin

unread,
May 10, 2000, 3:00:00 AM5/10/00
to
In article <8fc3iq$cnf$1...@nnrp1.deja.com>,

Chun <chun...@my-deja.com> wrote:
> In article <8favgl$omq$1...@news.doit.wisc.edu>,
> Steve Mading <mad...@baladi.bmrb.wisc.edu> wrote:
> > cr...@yahoo.com wrote:
> > : I'm looking for a way to do a side by side visual diff in Vim. I
> saw a
> > : post about that here at one time and tried it but couldn't get it
to
> > : work. Now I have a real need to do this and was wondering if
anyone
> > : knows of a way to do it.

> > vimdiff..


> > Go to the directory where vim has all its shared files, for example
> > it might be called "/usr/share/vim". In that directory, look for

>


> You can try "tkdiff" in UNIX.
> It works pretty well too.

The very best visual diff program is "windiff".
I think that it is from NT resource kit or you should be able to
get it free somewhere. It kicks all unix utilities' ass ( :-) ).

--
Woody

CBates

unread,
May 10, 2000, 3:00:00 AM5/10/00
to
And the next step up from windiff is Araxis' Merge. Not only diff, but
editing and merging, including 3-way. www.araxis.com. Not free, but if you
diff and merge regularly (I do, I work remotely from my development team),
it pays for itself in the first dozen files you need to merge.
CBates

T.E.Dickey

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
Woody Jin <wood...@my-deja.com> wrote:

> The very best visual diff program is "windiff".
> I think that it is from NT resource kit or you should be able to
> get it free somewhere. It kicks all unix utilities' ass ( :-) ).

not the version I've seen: the underlying diff algorithm doesn't distinguish
chunks well enough.

(I assume you're talking about the nice colors ;-)

--
Thomas E. Dickey <dic...@clark.net>
http://dickey.his.com
ftp://dickey.his.com

H. Merijn Brand

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
chun...@my-deja.com (Chun) wrote in <8fc3iq$cnf$1...@nnrp1.deja.com>:

>In article <8favgl$omq$1...@news.doit.wisc.edu>,
> Steve Mading <mad...@baladi.bmrb.wisc.edu> wrote:
>> cr...@yahoo.com wrote:
>> : I'm looking for a way to do a side by side visual diff in Vim. I
>saw a
>> : post about that here at one time and tried it but couldn't get it to
>> : work. Now I have a real need to do this and was wondering if anyone
>> : knows of a way to do it.

>> snip

A good alternative might be ediff based on emacs, though I'm pernonally NOT
an emacs user, I dislike it very much! (But ediff works great if that's
what you're looking for)

>You can try "tkdiff" in UNIX.
>It works pretty well too.

Which requires full install of Tcl and Tk.

Good (maybe better) replacements that do not require additional stuf:

xdiff: http://reality.sgi.com/rudy/xdiff/xdiff-v3.4.htm
xxdiff: http://xxdiff.sourceforge.net
mgdiff: http://cvsup3.jp.freebsd.org/ports/textproc.html
HP-UX http://hpux.connect.org.uk/hppd/cgi-
bin/search?package=&term=mgdiff-

For unix I personally prefer xdiff.

--
H.Merijn Brand
using perl5.005.03 and 5.6.0 on HP-UX 10.20, HP-UX 11.00, AIX 4.2, AIX 4.3,
DEC OSF/1 4.0 and WinNT 4.0 SP-6a, often with Tk800.021 and/or DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/
Member of Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)

Kenny McCormack

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
In article <aJvS4.22704$0o4.2...@iad-read.news.verio.net>,

T.E.Dickey <dic...@shell.clark.net> wrote:
>Woody Jin <wood...@my-deja.com> wrote:
>
>> The very best visual diff program is "windiff".
>> I think that it is from NT resource kit or you should be able to
>> get it free somewhere. It kicks all unix utilities' ass ( :-) ).
>
>not the version I've seen: the underlying diff algorithm doesn't distinguish
>chunks well enough.
>
>(I assume you're talking about the nice colors ;-)

There ought to be a rule - enforced Usenet-wide - that whenever a claim is
made about something being the "best", it be noted that "best" always has
(at least) two dimensions:

1) Algorithmically best
2) Best in terms of UI/pretty colors/newbie-friendly

Obviously, both are valid, but it ought to be clear that the first is
generally what is meant when the word "best" is used without qualification.

Suggestions for other dimensions gladly received. I can think of at least
one more:

3) Makes most money for shareholders

In which case, MS windows is clearly the best OS ever written.

Jiri Lisicky

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
On Tue, 09 May 2000 21:11:21 GMT, cr...@yahoo.com wrote:

>I'm looking for a way to do a side by side visual diff in Vim. I saw a
>post about that here at one time and tried it but couldn't get it to
>work. Now I have a real need to do this and was wondering if anyone
>knows of a way to do it.

diff ;-)

Yes - GNU diff (sure in version 2.7) with parameter --side-by-side
--
Jiří Lisický ČD DATIS Olomouc
e-mail: lis...@datis.cdrail.cz Nerudova 1
phone: +420-068-472-5496 Olomouc, Czech Republic
>>> čeština ISO-8859-2 Compatible <<<

Rudy Wortel

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
"H. Merijn Brand" wrote:

> chun...@my-deja.com (Chun) wrote in <8fc3iq$cnf$1...@nnrp1.deja.com>:
>
> >In article <8favgl$omq$1...@news.doit.wisc.edu>,
> > Steve Mading <mad...@baladi.bmrb.wisc.edu> wrote:

> >> cr...@yahoo.com wrote:
> >> : I'm looking for a way to do a side by side visual diff in Vim.

> snip

>
> Good (maybe better) replacements that do not require additional stuf:
>
> xdiff: http://reality.sgi.com/rudy/xdiff/xdiff-v3.4.htm

The URL is just http://reality.sgi.com/rudy/xdiff. All versions are available
from this page.

Good choice!! (no bias here :-)

-rudy


Woody Jin

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
In article <aJvS4.22704$0o4.2...@iad-read.news.verio.net>,
"T.E.Dickey" <dic...@shell.clark.net> wrote:
> Woody Jin <wood...@my-deja.com> wrote:
>
> > The very best visual diff program is "windiff".
> > I think that it is from NT resource kit or you should be able to
> > get it free somewhere. It kicks all unix utilities' ass ( :-) ).
>
> not the version I've seen: the underlying diff algorithm doesn't
distinguish
> chunks well enough.
>
> (I assume you're talking about the nice colors ;-)

And visual mapping which aids easy understanding of the situation.
Diff'ing two directories is quite handy and extremely time-saving
too.
I don't know, but I haven't had any trouble with
underlying diff algorithm so far.
I wouldn't go back to Unix's diff in any case.

Woody Jin

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
You didn't count the most important one: Usability.
If you ever used various diff programs, you get the feeling
of which one is the best.

In article <8fe7p1$seh$1...@yin.interaccess.com>,


gaz...@interaccess.com wrote:
> There ought to be a rule - enforced Usenet-wide - that whenever a
claim is
> made about something being the "best", it be noted that "best" always
has
> (at least) two dimensions:
>
> 1) Algorithmically best
> 2) Best in terms of UI/pretty colors/newbie-friendly
>
> Obviously, both are valid, but it ought to be clear that the first is
> generally what is meant when the word "best" is used without
qualification.
>
> Suggestions for other dimensions gladly received. I can think of at
least
> one more:
>
> 3) Makes most money for shareholders

--

T.E.Dickey

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
Woody Jin <wood...@my-deja.com> wrote:
> And visual mapping which aids easy understanding of the situation.

visual mapping is done in a half-dozen programs (windiff in fact wasn't
the first nor even the second one where I saw it used ;-)

Woody Jin

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
In article <SpRS4.22892$0o4.2...@iad-read.news.verio.net>,

"T.E.Dickey" <dic...@shell.clark.net> wrote:
> Woody Jin <wood...@my-deja.com> wrote:
> > And visual mapping which aids easy understanding of the situation.
>
> visual mapping is done in a half-dozen programs (windiff in fact
wasn't
> the first nor even the second one where I saw it used ;-)

Could you list some of them ?
I would like to try them and would use them if they
are much better than windiff. If I have to buy them,
I will stick to windiff, since it is more than enough for me
at this moment. I was just blown after all my years of
using Unix text diff, when I saw my colleague using windiff
seamlessly. I felt stupid.

Thanks,

T.E.Dickey

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
Woody Jin <wood...@my-deja.com> wrote:
> In article <SpRS4.22892$0o4.2...@iad-read.news.verio.net>,
> "T.E.Dickey" <dic...@shell.clark.net> wrote:
>> Woody Jin <wood...@my-deja.com> wrote:
>> > And visual mapping which aids easy understanding of the situation.
>>
>> visual mapping is done in a half-dozen programs (windiff in fact
> wasn't
>> the first nor even the second one where I saw it used ;-)

> Could you list some of them ?

they're on other systems, of course (OS/2 and Unix)

offhand, PMDiff (OS/2), TkDiff as well as some of those Motif applications
mentioned in this thread. (I don't recall the name of the first one I saw
since that was 6-7 years ago).

-- it would be interesting to see a webpage devoted to this topic,
unfortunately more are focused on one implementation only.

Kenny McCormack

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
In article <fQWS4.22924$0o4.2...@iad-read.news.verio.net>,
T.E.Dickey <dic...@shell.clark.net> wrote:
...

>offhand, PMDiff (OS/2), TkDiff as well as some of those Motif applications
>mentioned in this thread. (I don't recall the name of the first one I saw
>since that was 6-7 years ago).

I think PMDiff (which I used to use and liked a lot) evolved into
windiff. (There's a fair # of shareware/freeware apps that started out
on OS/2, then ended up on NT b/c the market shifted that way. And
before anyone screams, note that a fair # of now commercial apps
started out as shareware/freeware)

vgolo...@my-deja.com

unread,
May 30, 2000, 3:00:00 AM5/30/00
to
In article <8fh53c$17e$1...@nnrp1.deja.com>,
Woody Jin <wood...@my-deja.com> wrote:
> In article <SpRS4.22892$0o4.253429@iad-

read.news.verio.net>,
> "T.E.Dickey" <dic...@shell.clark.net> wrote:
> > Woody Jin <wood...@my-deja.com> wrote:
> > > And visual mapping which aids easy
understanding of the situation.
> >
> > visual mapping is done in a half-dozen
programs (windiff in fact
> wasn't
> > the first nor even the second one where I saw
it used ;-)
>
> Could you list some of them ?
> I would like to try them and would use them if
they
> are much better than windiff. If I have to buy
them,
> I will stick to windiff, since it is more than
enough for me
> at this moment. I was just blown after all my
years of
> using Unix text diff, when I saw my colleague
using windiff
> seamlessly. I felt stupid.
>
> Thanks,
>
> --
> Woody
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

Check http://www.skylarkutilities.com/section.pcs?
File-Synchronizing. They have a long (and
unbiased) list of merging freeware/shareware for
Windows.

Victor

vgolo...@my-deja.com

unread,
May 30, 2000, 3:00:00 AM5/30/00
to
In article <8fh53c$17e$1...@nnrp1.deja.com>,
Woody Jin <wood...@my-deja.com> wrote:
> In article <SpRS4.22892$0o4.2...@iad-read.news.verio.net>,
0 new messages