Working from home on a travel laptop makes one very stingy with screen space. I often have Vim taking up the right-most third of the screen and split up into 2-3 vertically stacked subwindows. Sometimes, I want them equal height (Ctrl+w
+=
) while other times, I maximize the height of the current window (Ctrl+w
+_
).
With (Ctrl+w
+_
), Vim used to leave at least one line of text visible in the other windows. With Vim 8.2, I find there are zero lines of visible text in the other subwindows, and only their status lines show. For me, this is not a strong enough reminder that I have other subwindows squished along the top and/or bottom.
Is there any way to specify that the number of visible lines of text for all subwindows can only drop as low as 1 and not to 0?
I mean without having to switch into the other windows.
:verbose set winminheight?
:set winminheight=1
fixes the problem. I've never heard ofwinminheight
orwmh
before, and it isn't in/etc/vimrc
(and I don't have a personal~/.vimrc
). So it's a mystery how the setting got set to zero. Fingers crossed that it doesn't happen often, but now I know how to fix it. Thanks! Would you like to post the answer?