On 06/04/09 01:00, Lech Lorens wrote:
>
> 05-04-2009 Bram Moolenaar<[email protected]>:
>>
>> It has a nice idea, but I think there are quite a few situations where
>> it doesn't work well. If the Visual selection doesn't fit in the
>> window, doesn't this have the effect of changing the selected area?
>> What happens if 'scrolloff' is non-zero?
>> Do we want the window to become smaller? I would only want it to become
>> bigger, and in a window that's already big enough the Visual selection
>> would be centered.
>>
>> As Andreas mentioned, this should be put under another key, since some
>> people might prefer the old behavior.
>
> The feature is controversial and seems to raise more problems than it
> has solved. My need was actually decreasing the size of the window so
> that it would show only selected information and wouldn't take too much
> space. Since I switched to using a Vim plugin I have no interest
> in developing this feature any more. Sorry for taking your time.
>
With Vim as-is, you can sometimes alternate between Ctrl-W _ (which
expands the current window to maximum size, or to the count provided)
and Ctrl-W = (which restores all windows to equal size).
I'm conscious that this doesn't cover all possible use cases, of course;
and personally I don't use it since (nowadays) I always expand the
current window to maximum size (and when I want to check text from
another window, well, I temporarily switch to that window).
Happy Vimming!
Tony.
--
Chef, n.:
Any cook who swears in French.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---