When I right click on a file and open it in Vim, the default window size is too small. How can I change the settings so that the default window size is bigger?
I'm running Vim 7.3.46 in Windows 7.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
This page suggests adding the following to _vimrc for avoiding problems with console Vim:
if has("gui_running") " GUI is running or is about to start. " Maximize gvim window. set lines=999 columns=999 else " This is console Vim. if exists("+lines") set lines=50 endif if exists("+columns") set columns=100 endif endif
Also, this SO question looks at how to remember the previous session's window size.