Lech Lorens wrote:

> The attached patch enhances the behaviour of CTRL-W_CTRL-_ in visual mode.
> 
> If CTRL-W_CTRL-_ is pressed in visual mode, Vim will try to change the
> height of the current window to match the visual selection and scroll
> the text so that all of the selection is visible.
> 
> I didn't know whether to document it in visual.txt or window.txt...
> Left it in window.txt along with documentation for the original
> CTRL-W_CTRL-_.

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.

-- 
Ten million Linux users can't be wrong!

 /// 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