Monday, April 4, 2011

Re: non-interactive vimdiff to stdout

On Apr 4, 12:15 am, ZyX <zyx....@gmail.com> wrote:
> Reply to message «non-interactive vimdiff to stdout»,
> 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:
>

This is also supported in the standard TOhtml plugin starting with the
Vim 7.3 version of the runtime files. I may borrow some of the code
for 'listchars' to put in at some point.

Somewhat off-topic, on the plugin page, you list several features of
the plugin over current or past TOhtml functions. I'm curious about
the following:

1. "Normal special character coloring": what does this mean?
2. "Background color for the whole line with differencies and folds,
not just for text": how is this accomplished? This sounds nice.

Item (2) above also reminded me of an annoying quirk of TOhtml, that
deleted lines in a diff fill out to the width of the Vim application
window or something huge like that, so that there are always
horizontal scroll bars on a side-by-side diff. Does your plugin handle
this better? If so, how? This is on my TODO list in TOhtml but it's
pretty low priority for me.

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