Ben,
On 2012-10-11 02:51, Ben Fritz wrote:
On Wednesday, October 10, 2012 10:51:09 AM UTC-5, Philip Rhoades
wrote:
People,
I love Vim and VimDiff is perfect for nearly all my diff needs -
however I need a script/method now that will produce a PS or PDF
file
from the vimdiff comparison. I tried printing to Cups-PDF but of
course
I just get the individual files printed - not what I am seeing on
the
screen . . is there a way to print the nice screen stuff? For some
comparisons a screen capture would work but that is clumsy and does
not
cover the situation when the comparison is more than one screen of
stuff.
Recent version of TOhtml will convert a side-by-side diff into HTML
as you would expect. You can event tell it to use javascript to allow
showing/hiding context. See :help :TOhtml.
Probably you can then print the resulting HTML file to get your final
desired result.
The problem is that the files contain long lines - after the HTML
conversion, the long lines in the browser are viewable by using the
scroll bars at the bottom of each panel but when printed, the lines are
truncated ie only the stuff on the screen with the scroll bars at hard
left are printed.
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: [email protected]
--
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