On 01-Aug-2013 14:16 +0200, Bram Moolenaar wrote:
> [...]
>
> 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.
FYI, I've implemented something like this in Vimscript: My
ProportionalResize plugin
http://www.vim.org/scripts/script.php?script_id=4462
It would work even better if there were a VimResizedPre event. So far
I'm snapshotting the current window dimensions only occasionally.
-- regards, ingo
--
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.