Reputation:
How can I set MacVim to start up with a window that extends the full height (minus menu bar) and width of my monitor (not fullview)?
If this impossible on startup, how can I change it manually (not by dragging the window, but with a command)?
Upvotes: 7
Views: 3980
Reputation: 224869
You can set the lines
and columns
options. Just use “very large” values and Vim will truncate them to the largest possible values for your screen and font sizes. If you put this in your ~/.gvimrc
, then your initial window will automatically be sized accordingly.
set lines=999 columns=9999
See :help 'lines'
and :help 'columns'
for the details.
MacVim also has the fullscreen
and fuoptions
options (along with the “Prefer native full-screen support” checkbox in the Advanced section of the MacVim > Preferences… dialog) that you might find useful.
Upvotes: 18