sent 01:20:44 04 April 2011, Monday
by geronime:
> 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.
If you want to get a syntax-coloured diff, you can try my plugin format.vim
(http://www.vim.org/scripts/script.php?script_id=3113). Using it in batch mode:
vimdiff file1 file2 -c 'FormatCommand diffformat' -c 'w! diff.html' -c 'qa!'
(create side-by-side formatted diff in a HTML table and write it to diff.html)
Note that outputting to stdout is not possible with vim.
Original message:
> 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.
>
> Thanks,
>
> Jiri
>
> --
> View this message in context:
> http://vim.1045645.n5.nabble.com/non-interactive-vimdiff-to-stdout-tp42793
> 44p4279344.html Sent from the Vim - General mailing list archive at
> Nabble.com.
No comments:
Post a Comment