On Sun, Nov 17, 2013 at 6:23 AM, Nikolay Pavlov <[email protected]> wrote:
>
> >> :h 'diffopt'. You can use "-c 'set diffopt+=iwhite'" to specify this
> option at the command-line, but it may be too late. Specifying it in the
> vimrc will not, but it is not convenient, thus you may want to use
> something like[snip]
>
> += does not do appending, it does addition. "diffopt" is not a vim
> variable, it is option and & is a sigil denoting option. There is no
> appending taking place here: you need
>
> let &diffopt.=(empty(&diffopt)?'':',').$VIMDIFFOPT
>
> (.= is appending). You should never confuse :let and :set.
>
> >
> > Thankis again...
> >
> > (didn't think to look for a diffopt under help as I had no idea it
> existed)
>
Nikolay et al:
Thanks, "sigil" is a new word for me.
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
$ vim -d -c "set diffopt+=iwhite" *.patch
and it worked as expected. As a further test, I added "set diffopt=" to my
vimrc, and it still worked fine.
Since most people do not know a given option exists, I recommend
:options
and then browse what is available.
More references:
:help startup
:help :set
:help :let-option
:help :set+=
HTH
--
Benji Fisher
--
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.