On Nov 17, 2013 3:08 PM, "Linda W" <vim@tlinx.org> wrote:
>
> On 2013-11-15 21:25, Nikolay Pavlov wrote:
>>
>>
>> On Nov 16, 2013 9:17 AM, "Linda W" <vim@tlinx.org <mailto:vim@tlinx.org>> wrote:
>> >
>> > in mgdiff, you can specify a mgdiff --args "-w..." file1 file2
>> > to allow you to pass most args you'd want to mgdiff.
>>
>> :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
>>
>> ��� if !empty('$VIMDIFFOPT')
>> ������� let &diffopt=$VIMDIFFOPT
>> ��� endif
>>
> Thanks!... and thanks to the others who responded too...had
> a Q about the above. Does using the '&' before the vimvar take the place
> of the += in doing an append to the var?
+= 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)
>
>
>
> --
> --
> 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.
--
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:
Post a Comment