Markus Heidelberg wrote:

> Bram Moolenaar, 06.03.2009:
> > 
> > Markus Heidelberg wrote:
> > 
> > > Lech Lorens, 05.03.2009:
> > > > Perfectly fine with me - I hardly ever use :diffoff without !, anyway.
> > > 
> > > Is there a reason to not support the corresponding :diffthis! command?
> > > For consistency it seems like a good idea, instead of using two
> > > different ways ":windo diffthis" and ":diffoff!". Furthermore :windo can
> > > move the cursor into another window, which is normally not desired.
> > > 
> > > --- >8 ---
> > > 
> > > Add support for :diffthis! for setting the diffmode in all windows in
> > > the current tab page.
> > 
> > Makes sense.  But it should skip "special" windows: help, quickfix,
> > preview, etc.
> 
> Sure, will do.
> 
> What do you think, should the :diffthis! command set a special window
> into diffmode, if it is the current window or should it never adjust
> special windows?
> I guess the former solution would be more consistent, since :diffthis
> sets the current window into diffmode regardless of it being a special
> window or not.

Yes, if you do :diffthis or :diffthis! then the current window should
always go to diff mode.  But ":diffthis!" should only include other
windows that are "normal" to avoid trouble.

It's perhaps a bit strange to use ":diffthis!" to start diff mode in
other windows.  ":diffall" would be more obvious.  It's not symmetric
with ":diffoff" vs ":diffoff!", but that one doesn't say "this".

What do you all think about using ":diffall" instead?

-- 
The CIA drives around in cars with the "Intel inside" logo.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui