John Beckett, 09.03.2009:
> 
> Bram Moolenaar wrote:
> > 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?
> 
> There is already quite a bit of "history" in Vim, so I would prefer to
> NOT introduce a new command.

If :diffthis wouldn't yet exist, I'd definetly prefer :diffon[!] and
:diffoff[!]. But now I also prefer :diffthis!. A new command :diffall
is probably a bit confusing, since we would end up with 3 commands
(this|off|all) for 2 (or 4) actions (diff on/off).

I just though, if we treat :diffthis as "diff this window" and
:diffthis! as "diff this tab", then the "this" in the latter command
doesn't seem so linguistic strange any more.

> The following looks logical to me:
> 
>  " Go to window 1
>  :diffthis
>  " Go to window 2
>  :diffthis
> 
>  " Remove diff from all visible windows
>  :diffoff!
> 
>  " Apply diff to all visible (normal) windows
>  :diffthis!

This is my preferred solution, too.

Markus


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

Raspunde prin e-mail lui