On Sunday, June 10, 2012 7:52:37 AM UTC-5, Christian Brabandt wrote:
> How did you generate the aligned.patch file? No matter what I do, for me
> the plugin always generates:
>
> 2,7c2,4
> < a
> < b
> < cb
> < db
> < eb
> < f
> ---
> > cc
> > dd
> > ee
>
> But perhaps, I'm using your plugin wrongly, e.g. how many alignemnt
> points do I have to set and where? But even after I manually copied the
> aligned.patch file over the resulting file, Vim still gets the alignment
> wrong.
>
Oh, sorry.
enter the text shown in the screenshots, place the cursor on line 4 of
file_a.txt ("cb"), press <Leader>mda to "mark diff alignment". Go to line 2 of
file_b.txt and again type <Leader>mda> to indicate that those two points
correspond to each other. Then run :diffupdate.
I think I have logic in there that ignores all the alignment points if there
aren't the same number in each buffer but I'm not sure if I got around to that.
> BTW: attached is a patch, that prevents the use of using diffexpr for
> checking if diff really works (using the "line1" vs. "line2" check):
>
I don't think that's a very good idea, what if somebody uses diffexpr to
specify the full path to diff? Or to use a separate program entirely, and they
don't even have diff installed on their system? Then the test will always fail,
right?
But it should be documented by diffexpr how the test actually works, it took me
quite by surprise.
--
You received this message from the "vim_dev" 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