Christian wrote:

> On Mi, 31 Jul 2013, Bram Moolenaar wrote:
> 
> > 
> > [Christian, for some reason quoted long lines are wrapped badly]
> 
> Yeah, Squirrelmail messed it up. I usually reformat mails using Vim (of 
> course! ;)), but forgot this time.
> 
> [adjust Vim windows, when vim is resized and 'equalalways' is set]
> > > One more patch.
> 
> > I don't think this should be the default behavior.  We could add another
> > option, or make the autocommand simpler.
> 
> Well, for what it's worth, I am always annoyed, that resizing the main 
> Vim Window, messes up my carefully adjusted different windows and it 
> feels logically, that when 'ea' is set, it should be respected, even 
> when resizing Vim. 
> 
> It doesn't actually sound right to have yet another option, that only 
> applies when a different option is set and additionally Vim is resized. 
> Perhaps make 'ead' accept several option values and include a new value 
> 'resize'? (not sure, how complex that change would be)
> 
> What exactly do you mean, by making the autocommand simpler?

I basically only want 'ea' to apply when splitting a window, so that the
new window gets a reasonable size.  I often resize the Vim window for a
moment to see a long line, I don't want that to mess up the window
layout.  When I put the window size back to what it was the window
layout should be back to what it was.

What would work better is a relative resizing.  Thus if the user makes
the Vim window 20% wider, then all split windows become 20% wider.
Similar to what happens to the cursor line when making a window taller
or smaller.

Because of round-off errors Vim would need to snapshot the window layout
before the resizing.  Or perhaps floats can be used.  Thus besides
storing the absolute size of a window, the percentage of the total
window size needs to be kept.  Only needs to be udpate before doing the
resizing.

-- 
Due knot trussed yore spell chequer two fined awl miss steaks.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui