How do I start gvim with a maximized window?
Just like many other Gtk+ apps, gvim understands the parameter -geometry
. Try for example
gvim -geometry 500x500
For me (I'm on Ubuntu 11.10), adding this to my .vimrc seems to do the trick. No need for geometry settings, etc.
if has("gui_running") " GUI is running or is about to start. " Maximize gvim window. set lines=999 columns=999endif
You should be able to change the size by going into the vimrc file, where you can specify the size or maximize it on open.
Have a look here.
http://vim.wikia.com/wiki/Maximize_or_set_initial_window_size