Is there some way to resize windows without using the mouse, such that I can control which border moves?
It seems like it's ordinarily the bottom border or right border that moves, relative to the window my cursor is in. I've found some cases where this is not the case (for example, expanding the vertical size of window 3 in the image below causes its top border to move up).
In the image below, I am trying to make window 5 larger by moving its top border up. However, I am not sure how to do this without using the mouse. Expanding the size of window 5 (
<c-w>+) causes its bottom border to move down (as opposed to having window 5's top border move up). Shrinking the size of windows 3 or 4 (
<c-w>-) causes their top borders to move down (as opposed to having window 5's top border move up).
(note: the window number labels used here don't correspond to the actual Vim window numbers)