Skip to content
Advertisement

How do I start gvim with a maximized window?

I would like to start gvim, from the command line, into a maximized window – how can I do this?

I have no wish to always start in a maximized window (that is, not configure it as default in .vimrc), but rather choose to provide a parameter to the program.

That is, running gvim <parameter(s)> should start the program in a maximized window but just running gvim should start the program with the default size.

Advertisement

Answer

Just like many other Gtk+ apps, gvim understands the parameter -geometry. Try for example

gvim -geometry 500x500
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement