Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The default window size appears to be 24x80 but I'd prefer to set it so new windows appear in the size 50x90. Is there a way to set this default?

share|improve this question

3 Answers 3

up vote 25 down vote accepted

try setting the following line in ~/.gvimrc

set lines=50 columns=90

share|improve this answer

I tried the full set lines=## columns=## but it did not work.

What I found is that using two set commands, one for each option, did work:

set lines=##
set columns=##
share|improve this answer

Like Gren said, but for the command line. On my Mac the --geometry argument is not supported

alias gv='mvim -c "set lines=50 columns=98" -p'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.