Monday, April 4, 2011

Re: non-interactive vimdiff to stdout

On 03.04.11 21:10:21 , Gary Johnson-4 [via VIM] wrote:

> On 2011-04-03, geronime wrote:
> > Hello,
> >
> > I would like a non-interactive output of "vimdiff file1 file2" to STDOUT or
> > a tip to some diff program with similar formatting to vimdiff.
> >
> > Any hints appreciated.
>
> For a side-by-side diff similar to vimdiff's but in the format of a
> plain text file, take a look at sdiff.  I think you'll find it on
> any Unix or Unix-like OS.
>
> Regards,
> Gary
>

Thanks! I combined it with colordiff and it is almost what I wanted. The exact difference part on the two simmilar lines is not explicitly colored as vimdiff does.

Funny I did not run into sdiff myself. Thanks again,
Jiri


View this message in context: Re: non-interactive vimdiff to stdout
Sent from the Vim - General mailing list archive at Nabble.com.

--
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

No comments: