On Thu, Sep 3, 2009 at 3:59 PM, Christian Brabandt<[email protected]> wrote: > > Hi Hari! > > On Mi, 02 Sep 2009, Hari Krishna Dara wrote: > >> I couldn't determine if this was discussed before by searching. I want >> to export the current vimdiff to html, but 2html.vim only exports on >> window at a time. Is there a plugin or a trick to come up with both >> the windows participating in the diff? > > Interesting question. A made a simple hack, that will display all > diffed files in a frameset. See > http://www.256bit.org/~chrisbra/patches/Diff.html for the generated > html file > and > http://www.256bit.org/~chrisbra/patches/tohtml_diff.diff for the patch > to tohtml.vim > > Frames have the advantaged of beeing relatively simply created, (I > made no changes to syntax/2html.vim) but the disadvantage of not being able > to get synchronized scrolled (except for javascript maybe?)
Exactly... I first thought about frames, but didn't consider it for two reasons: - synchronization is not possible or straight-forward (as you mentioned above). - Copy pasting into a HTML/RTF email is not easy/possible. For me, the main reason I thought about this was to be able to copy paste into an email. Even if the diff is huge and need to attach instead of sending inline, attaching a single file containing all the diff is much better than attaching 3 or 4 (if there are 3 files in the diff) and double clicking the main attachment might not even make it work. -- Hari > > regards, > Christian > -- > Beer & pretzels can't be served at the same time in any bar or restaurant. > [real standing law in North Dakota, United States of America] > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
