Am 23.03.2011 14:43, schrieb Ben Schmidt:
>
> I think what's happening is that Vim is using these 'line1' and 'line2'
> files to check diff is working properly. And when they get changed to
> 'lin' and 'lin', diff no longer outputs what Vim expects, so it fails.
>
> Try ensuring those files don't have the substitution done on them by
> something like this:
>
> if line('$') > 1
> %s/^\(.\{3}\).*$/\1/
> endif
>
> Diffing a single line file is pretty meaningless anyway, unless it's for
> testing!
Works like a charm. Thanks!
Next thing I'll have to look at is whether I can influence diff's
strategy for identifying changes. It seems to me, diff is trying to
minimize the number of changes. For my purposes, a strategy that results
in (higher number of) smaller changes might be more suitable.
As far as vim is concerned, I would like to find out two things: Is
there any way to suppress the "missing lines" displayed in the diff
view? And is it possible not to highlight the "changed" lines?
Malte
--
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