Tony Mechelynck wrote:
On 17/12/09 05:54, MK wrote:
Tim Chase<[email protected]> wrote:
I fought with this on Win32 gvim and never found a
satisfactory solution...Vim regularly wanted to override
the specified number of lines to make sure it fit on the
screen for its definition of "fit" (which, as you
experience, left several lines off). I've since moved
mostly to my Linux box where I use console vim instead,
and have my xterms set so that I can maximize them
vertically with no window-chrome (fairly easy to do in
Fluxbox...not sure about other window managers).
That's two of us. I'm gonna find out where to file a
ticket. This is just plain a very very stupid feature. I
wonder if it's cause Bram always uses a terminal too :P
I don't think it's stupid. Without it, ":set lines=999
columns=999" would make gvim really set its screen to 999
lines by 999 columns
If Vim offered a true maximize function, and/or allowed a
special value such as "-1" to be used for lines/columns to
mean "as much as Vim thinks should be allowed" (the current
clipping maximum when 999 is used), it would solve a
repeated hacks that Tony describes. When the topic comes up
on the list, the answers are to either
1) use "set lines=999 columns=999" but vim may
mis-approximate your dimensions and rob you of a row or two
(as you and I are experiencing)
2) use simalt but it's non-portable across platforms and
locales as Tony warns
I think my biggest frustration on the issue is that there's
no way to say "use my value and I bloody mean it, don't try
to clip to some arbitrary value you think will fit on the
screen". You can drag the resize corners of gvim (or the
console corner around a console vim) and exceed the caps for
lines/columns, but you can't set them explicitly to those
values and restore where you previously were.
I've actually had cases on Win32 where I resized by
dragging the corner of gvim to be *truly maximized* and then
clicked on the "maximize" button and *lost* lines (about 2
lines went away). There's something wrong when this
happens.
-tim
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php