Ian Kelling wrote:
> Ok. I've also found I can fix it by doing :diffoff in the new tab,
> and :diffthis in the old tab. I can understand having to do :diffoff
> to change the foldcolumn and other diff settings that were derived
> from the first window. But I think the folding being screwed up in the
> original window is a bug. Do you agree?

I'm not sure, but I suspect two problems: One is that there's no simple :tab
equivalent to :split (without arguments). You can only :tabe which works
like :edit. Actually, how about instead of :tabe % you try

:tab sp

Does that fix it?

Also, did you try the <C-W>s<C-W>T alternative? Did that work?

The second problem is in the way :edit works, which I believe is a bug
and is already on my to-do list to look into. When you do :edit the
current window stays in the same position, but all other windows viewing
that same file scroll to the top. :split with an argument has the same
effect. I suspect there are other side effects too when that happens:
and breaking folding and scrollbinding are pretty strong candidates. I
think if :edit didn't have these problems, it would probably work (even
though it would still be less efficient than :tab sp because it reloads
the file rather than just splitting the buffer into two windows).

Bram, would you be open to the idea of making :tab without an argument
behave like :tab split? That seems really logical to me. At the moment
it seems to do nothing.

Ben.
































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

Raspunde prin e-mail lui