James Hales wrote:
Hi,

When I maximize Gvim in Gnome, the status line is partially hidden by
the gnome panel, which is really annoying. This is because of how Vim
resizes itself, i.e. it is constrained to being resized one character
size at a time. When Gvim is maximized, it is half a character too
high, so that extra half character, half of the status line, is hidden
beneath the gnome panel.

Is there any way to alleviate this problem?

Thanks very much,
James Hales



Do you maximize gvim by "OS methods" (like [a] clicking the Maximize icon at top right [b] clicking the program icon at top left, then using "Maximize" or [c] ":simalt ~x" on English-language Vim) or by "Vim methods" (like ":set lines=9999 columns=9999")? The latter sometimes make the Vim screen smaller by one character cell horizontally and/or vertically than the former. So, try

        :set lines=9999 columns=9999

and, if the bottom line is still obscured by the Gnome panel, follow the above line by

        :set lines-=1

Note that setting 'lines' to 9999, then down by 1, is not equivalent to setting it to 9998, because Vim will not allow 'lines' or 'columns' to exceed what can be displayed. But if ":set lines=1" makes no difference when in your vimrc (and makes one when entered manually) you may want to delay it until after starting the GUI by replacing it with

        :autocmd VimEnter * set lines-=1


Best regards,
Tony.

Reply via email to