I know this is a common problem but I've never found an answer that really works.
When I start up gvim, the following sequence of events takes place:
- GVim window opens
- A rule in my
maximized_horizontal, causing the window to fill the screen
- GVim reacts to the change by shrinking to an even number of characters
set guioptions-=mremoves the menu bar, further shrinking the window.
There is now a substantial gap below the window. Even re-maximizing it still leaves some gap, though smaller.
Ideally, I would like a way to force the window geometry to be fixed, and not allow GVim to resize the window, no matter how much it wants to (those few times when it's nice for GVim to resize are not worth the times when it's not).
Can this be done?