2015-9-26(Sat) 6:21:20 UTC+9 Christian Brabandt:
> There was a small error in the patch,
> attached again.
Here is a simple solution patch.
https://gist.github.com/h-east/a26febcb48eb868b0676
The autocommands does not blocked, when does not switch window (and tabpage) in settabwinvar(), setwinvar(), gettabwinvar() and getwinvar().
I was previously discussed the similar topic. (sorry in Japanese)
https://github.com/vim-jp/issues/issues/765
I don't know the autocommand block/unblock policy.
Thanks.
--
Best regards,
Hirohito Higashi (a.k.a h_east)
Speaking of that, it would be nice if ":verbose set ..." indicated that a given setting came from ":set all&".
--
Justin M. Keyes
On Sep 26, 2015 4:10 PM, "Christian Brabandt" <cbl...@256bit.org> wrote:
>
> On Sa, 26 Sep 2015, Justin M. Keyes wrote:
> > Speaking of that, it would be nice if ":verbose set ..." indicated
> > that a given setting came from ":set all&".
>
> Is this ":set all&" really used? What is the use case for this?
It is very useful to reach a known default state, in order to undo the garbage that various distributions ship in /etc/vimrc.
Setting each option explicitly is annoying: it defeats the purpose of having _defaults_.
OK. I was concerned because one of your patches contained this:
+ When setting options using |:let-&|, won't trigger the
+ |OptionSet| autocommand, to avoid nasty side effects.
I was voicing my concern about that statement, I'll be happy if it no longer applies.