Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

When I do the :vsplit command, it always opens the new file on the left side of the screen. Is there a way I can specify I want the new file to open to the right?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

You're looking for

:set splitright

You can also influence this for individual commands, e.g.

:rightbelow vsplit
share|improve this answer
I added set splitright to my vimrc, thank you! – Stephanie Aug 1 '14 at 15:40

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.