devth
devth

Reputation: 2750

MacVim open vertical split upon launch

How do I make mvim automatically split the window vertically upon launch?

Upvotes: 3

Views: 3123

Answers (3)

yjsoon
yjsoon

Reputation: 849

If anyone is getting here trying to find out about how to get external files to open in vertical splits, use this Terminal command:

defaults write org.vim.MacVim MMVerticalSplit YES 

Source.

Upvotes: 3

Mike Morearty
Mike Morearty

Reputation: 10273

I don't have mvim, but it probably reads ~/.vimrc, so, try adding this line to your ~/.vimrc file:

vsplit

Upvotes: 6

too much php
too much php

Reputation: 90978

You can use vim +vsplit to make vim run :vsplit after opening.

Upvotes: 3

Related Questions