Tony Mechelynck wrote:
> Bug? With
>
> gvim -o3 file1.txt file2.txt file3.txt
>
> only the first two are displayed in a window. (All 3 files exist.)
>
> The arguments list is OK, since
>
> :bot new
> :last
>
> opens the 3rd file in a 3rd window.
>
> If the line
>
> set noea wmh=0 wh=99999 hh=99999
>
> (in my vimrc) is changed to
>
> au VimEnter * set noea wmh=0 wh=99999 hh=99999
>
> (with no other changes in the vimrc), Vim opens all three windows at
> startup. I suspect that the test for "is there enough space?" in the
> handling of the -o command-line argument erroneously tests &winheight
> instead of &winminheight.
>
> This is vim 7.0.97 (Huge, for GTK2/Gnome).
'winheight' defines the minimal space for the current window. This is
taken into account when computing the number of windows opened for the
"-o" argument. Vim thinks you want one window with 'winheight' lines,
nothing else fits if it's a big number. I think this is correct
behavior. It's also documented in the help for 'winheight'.
--
FATHER: You only killed the bride's father - that's all -
LAUNCELOT: Oh dear, I didn't really mean to...
FATHER: Didn't mean to? You put your sword right through his head!
LAUNCELOT: Gosh - Is he all right?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///