Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move or create a window on the right side on Vimscript?

Tags:

vim

I'm trying to modify project.vim to open the project window on the right side instead of in the left. I see several references in the source to "vertical new", "vertical split" and "vertical resize". Trying them I see that a new vertical split is opened to the left, but I can't find how can I make a new vertical split open (or move) to the right side. I know the command Control-W + r will move the window to the right, but I don't know how this is done using vimscript.

like image 917
juanjux Avatar asked Sep 15 '10 10:09

juanjux


People also ask

How do I change the window in Vimdiff?

Press Ctrl + W and then (after releasing Ctrl + W ) press the arrow keys to change the pane. Show activity on this post. It is very useful to use set mouse=a in your .


1 Answers

Try changing vertical new to rightbelow vertical new.

Also, see :help vertical and all the friends listed just after it.

like image 173
Randy Morris Avatar answered Sep 29 '22 04:09

Randy Morris