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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

 
discard

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.