Wednesday, March 4, 2015

Re: [ann] New plugin to use patience diff algorithm for vim

Hi Gary!

On Mi, 04 Mär 2015, Gary Johnson wrote:

> On 2015-02-25, Christian Brabandt wrote:
> > Hi,
> >
> > I made a new plugin to make Vim understand unified diffs.
> >
> > This allows to generate diffs using the patience algorithm which might
> > provide better readable diffs. This really depends on the changes and
> > will not always provide better results but at least this allows to
> > easily switch between different diff algorithms.
>
> Hi Christian,
>
> Thanks so much for doing this. I often deal with messy merges, so I
> am looking forward seeing the improved diff results. Of course I
> haven't had to do any messy ones since I installed your plugin.
>
> I think I've found a bug. When I start vimdiff from the command
> line with the option
>
> --cmd 'set diffopt+=iwhite'
>
> then execute
>
> :PatienceDiff
> :diffu
>
> I get the error message
>
> EnhancedDiff: git diff not found in path, aborting!
>
> That message is not accurate. The real reason that the call to
> s:DiffInit() fails (at line 109 of autoload/EnhancedDiff.vim) is
> this:
>
> Vim(call):E121: Undefined variable: g:diffargs
>
> There is only one occurrence of g:diffargs in your plugin, and
> that's at line 40 of autoload/EnhancedDiff.vim. I think that
> variable is supposed to be s:diffargs. Renaming it fixes the
> problem.
>
> I'm using EnhancedDiff.vim version 0.2 and Vim 7.4.640.

Thanks! I am fixing it now and will upload a new version.

Best,
Christian
--
Meinungen sind so etwas ähnliches wie Hämorrhoiden des Geistest.
-- Heimito von Doderer (Pseudonym: Stangeler, Reneé)

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: