Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

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