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.
vimrc and restart of gvim F11 now has the desired effect. With gnome you can set a shortucut to the "fullscreen" action. Use gnome-keybinding-properties, select Window Managaer and choose Change to Fullscreen, then select a shorcut (F11 for example). This shortcut will set the current Gnome Window in fullscreen mode.
Try typing just "gvim" instead of "start gvim.exe". That works for me. Vim isn't in my path environment variable.
To move from the current Vim window to the next one, type CTRL-W j (or CTRL-W <down> or CTRL-W CTRL-J). The CTRL-W is the mnemonic for “window” command, and the j is analogous to Vim's j command, which moves the cursor to the next line.
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=999 endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With