On Apr 18, 1:42 pm, Tony Mechelynck <[email protected]>
wrote:
> On 18/04/09 10:48, Yakov wrote:
>
>
>
> > Is there autoevent that's triggered when buffer window is resized ?
> > (vimresize event seems to be something else)
>
> > Yakov
>
> No, there isn't. You could try to determine what causes the window to be
> resized (e.g. if it's because another window is opened or closed, there
> are several autocommand events for that); but a script still couldn't
> determine that the user has dragged a statusline up or down or used the
> ^W_ or ^W= Normal-mode commands (where ^W is Ctrl-W).
>
> Or you could trap a fairly frequent event or events (such as
> CursorMoved, CursorMoverdI, CursorHold, CursorHoldI), quickly check
> winheight() and/or winwidth()
Oh, checking the winheight() in CursorHold is great idea. Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---