Tuesday, June 5, 2012

Re: how to resize window continuously ?

On 06/05/12 20:18, stardiviner wrote:
> In vim, how to adjust window height or width continuously ?
> For example,
> press `C-w -` and `-` and `-` to decrease window height again and again,
> But this seems can not work in Vim.
>
> So is there a good and simple way to do this ?

I suppose I'd just create a mapping:

:nnoremap - <c-w>-
:nnoremap + <c-w>+

and then you can repeatedly hit +/- to increase/decrease the window
size. The "+" can be shadowed uneventfully as <cr> also provides
the same functionality. Shadowing "-" does lose functionality, but
it's almost never used (perhaps outside of vimgolf) and could be
remapped to another key.

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: