tags:

views:

455

answers:

3

vim's :vsp command opens a window on right. Is there a way to open it on the left side of the screen?

+7  A: 

You have to do :rightb vsp. or :bel vsp.

The rightb and bel[owright] stands for right below. You can put any splitting command after it and it will split in that direction dependant on if v is in the splitting command.

There is also :lefta vsp and :abo vsp, if you want to make sure you split in the other direction and works in the same way as above.

David Raznick
+4  A: 

There is a setting you can add to vimrc:

set nosplitright

There are equivalent commands for :sp

set nosplitbelow
redacted
A: 

The command :vnew opens a new window on the left side for me.

spatz