If you have splitright and noequalalways set, when you split a window 
(normal horizontal split, not vertical split), the split will appear above 
the current window.
When you close the split window, the space is restored to the window ABOVE, 
not back to the window below.

I can see that this is intentionally done in window.c:
/*
 * Return a pointer to the frame that will receive the empty screen space 
that
 * is left over after "win" is closed.
 *
 * If 'splitbelow' or 'splitright' is set, the space goes above or to the 
left
 * by default.  Otherwise, the free space goes below or to the right.  The
 * result is that opening a window and then immediately closing it will
 * preserve the initial window layout.  The 'wfh' and 'wfw' settings are
 * respected when possible.
 */
    static frame_T *
win_altframe(

Is there some way to have this be a little more intelligent about where the 
window space is restored?

Mark Waggoner



-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/3bc58cfa-aa6d-43f9-8b27-2c5a83dcd2aa%40googlegroups.com.

Raspunde prin e-mail lui