On 2012-06-25, Tony Mechelynck wrote:
> The behaviour I see is that at startup, or if the GUI height is lower
> than the screen size, I get maximum height (48 lines in my case,
> which is maybe a few pixels more than "the screen height minus one
> line"). If the GUI is already at 48 lines or more (with my usual
> 'guifont'), ":set lines=999" makes the GUI expand to I don't know how
> much more than the screen. Repeating it immediately doesn't bring it
> back within the screen, but ":set lines=25" followed by ":set
> lines=999" (or, in a single command, ":set lines=25 lines=999") does.
> The weird thing is of course that since the command line is below the
> bottom of the screen, this command must be typed "blind" (i.e. sight
> unseen). But it works for me. The above might be intentional, in
> order to work around the case where the screen size is not "guessed"
> correctly: ":set lines=999" gives you (the first time) the maximum
> "guessed" size; but ":set lines=435 lines=435" gives you 435 lines
> regardless of what had been "guessed" (or obtained from the system).
> You can always come back to the guessed maximum by going back first
> to some height which you know is smaller than the screen but high
> enough for your current number of split windows (in any tabpage, even
> other than the current one). (Trying to set 'lines' too low gives you
> an error; you get the minimum possible and anything after that in the
> same :set command is not processed.)
I see a variation of this. If I start gvim from a command line as
$ gvim -N -u NONE
I get an 80x24 window, as expected. Executing ":set lines=999"
results in a window the full height of the window manager's
workspace, 66 lines. Executing ":set lines=999" again does not
increase the size of gvim's window as displayed by the window
manager, but the command line disappears below the bottom edge of
the window. The value of 'lines' is 999, determined by "a^R=&lines"
since the command/status line is no longer visible.
Executing ":set lines=25 lines=999" restores the 66-line window with
the command/status line visible at the bottom.
> Which GUI flavour are you using under Linux? I'm using gvim with
> GTK2-GNOME GUI. It can be seen near the top of the output of
> :version, just before the list of features present or absent by
> virtue of compile-time settings.
Vim 7.3.562
GTK2 GUI
KDE 4.3.1
Regards,
Gary
--
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