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
: 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:madi...@bmrb.wisc.edu B1108C, Biochem Addition / 433 Babcock Dr / Madison, WI 53706-1544
> 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:madi...@bmrb.wisc.edu > B1108C, Biochem Addition / 433 Babcock Dr / Madison, WI 53706-1544
You can try "tkdiff" in UNIX. It works pretty well too.
> In article <8favgl$om...@news.doit.wisc.edu>, > Steve Mading <madi...@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 ( :-) ).
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
> 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 Jin <woody...@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 ;-)
chun_...@my-deja.com (Chun) wrote in <8fc3iq$cn...@nnrp1.deja.com>:
>In article <8favgl$om...@news.doit.wisc.edu>, > Steve Mading <madi...@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:
In article <aJvS4.22704$0o4.246...@iad-read.news.verio.net>,
T.E.Dickey <dic...@shell.clark.net> wrote: >Woody Jin <woody...@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.
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: lisi...@datis.cdrail.cz Nerudova 1 phone: +420-068-472-5496 Olomouc, Czech Republic >>> èe¹tina ISO-8859-2 Compatible <<<
"H. Merijn Brand" wrote: > chun_...@my-deja.com (Chun) wrote in <8fc3iq$cn...@nnrp1.deja.com>:
> >In article <8favgl$om...@news.doit.wisc.edu>, > > Steve Mading <madi...@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:
> > 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.
gaze...@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:
In article <SpRS4.22892$0o4.253...@iad-read.news.verio.net>, "T.E.Dickey" <dic...@shell.clark.net> wrote:
> Woody Jin <woody...@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.
Woody Jin <woody...@my-deja.com> wrote: > In article <SpRS4.22892$0o4.253...@iad-read.news.verio.net>, > "T.E.Dickey" <dic...@shell.clark.net> wrote: >> Woody Jin <woody...@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.
>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)
> 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.
> In article <SpRS4.22892$0o4.253...@iad-read.news.verio.net>, > "T.E.Dickey" <dic...@shell.clark.net> wrote: > > Woody Jin <woody...@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.