Mark Woodward wrote:
Hi Shawn,
On Tue, 2007-03-13 at 09:28 -0400, Mr. Shawn H. Corey wrote:
Hi,
I'm running Ubuntu 6.10 on a PowerBook 4 under GNOME. Is there any
command I can put inn my .gvimrc that will maximize the window at
startup? I tried:
:autocmd GUIEnter * simalt <F10>
But simalt does not work in Linux.
I may not know much about GUIs but ever one I read so far has an API
call that maximizes the window. So, what's the best way to do this?
open gvim
hit the maximise button (top right hand corner)
from within vim:
:set lines?
:set columns?
you should get 2 values, lets say 50 and 100.
in your gvimrc
set lines=50
set columns=100
cheers,
This will work; but you must remember to change it again whenever you change
the resolution of your graphics display, or the name and size of your 'guifont'.
If you use different 'guifont' settings for different projects (for instance I
use a much larger font for Chinese than for Latin), then if you don't want to
rely to the auto-resizing of sizes greater than the viewport, the 'lines' and
'columns' settings will also be different.
Best regards,
Tony.
--
It's a very *UN*lucky week in which to be took dead.
-- Churchy La Femme