Monday, November 18, 2013

Re: vim -d(iff) file1 file2 -- diff args?

On Monday, November 18, 2013 1:19:30 PM UTC-6, ZyX wrote:
> On Nov 18, 2013 10:06 PM, "Benji Fisher" <be...@fisherfam.org> wrote:
> >
>
> >      I do not know why everyone is so worried about -c being executed too late.  I often
>
> >
>
> > :set diffopt+=iwhite
>
> >
>
> > after starting vimdiff, so why would doing it at the command line be too late?  Just to be sure, I tried
>
> AFAIK you should set diffopt *before* actually doing diff. As I do not know for sure whether -c is executed before or after vim runs diff I am writing this warning.
>

I frequently set diffopt after starting the diff with no ill effects. Just to be sure, I always do :diffupdate after messing with the diff options, but I don't usually know until after I started the diff that I ought to have set it to ignore whitespace.

--
--
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/groups/opt_out.

No comments: