Reputation: 2750
How do I make mvim automatically split the window vertically upon launch?
Upvotes: 3
Views: 3123
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
Upvotes: 3
Reputation: 10273
I don't have mvim, but it probably reads ~/.vimrc
, so, try adding this line to your ~/.vimrc
file:
vsplit
Upvotes: 6
Reputation: 90978
You can use vim +vsplit
to make vim run :vsplit
after opening.
Upvotes: 3