Fandom

Vim Tips Wiki

Control the position of the new window

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 34 Printable Monobook Previous Next

created March 7, 2001 · complexity intermediate · author slimzhao · version 5.7


There are a few ways to open a new window (:help opening-window), but some users may not like the placement of this new window. By default, Vim opens the new window above the current one for horizontal splits, and to the left of the current one for vertical splits. You can customize this behavior like most other things in Vim:

 :set splitbelow

make the new window appear below the current window.

 :set splitright

make the new window appear on the right.

CommentsEdit

 TO DO 

  • Move tip to give it a better name?

Also on Fandom

Random Wiki