Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there a way to make it open under the current active window instead of over it? The standard setting always moves the whole content you are trying to look at down, including the selection window, which is kind of counterproductive.

share|improve this question

migrated from Nov 29 '12 at 12:40

This question came from our site for professional and enthusiast programmers.

You'd have to ask on SO to clear the migration history, but in essence, we have 1,530 vim questions here and they're on topic as well, so I wouldn't worry too much about it. – slhck Nov 29 '12 at 16:59
There needs to be a clear rule, some questions are here, other questions there, some get migrated, others not… – Profpatsch Nov 29 '12 at 17:03
They're on topic on both sites – choose whichever you want to post on. Of course it shouldn't have been migrated in the first place if the MSO question you linked to still applies, but AFAICT there's a general shift towards closing anything not about actual programming problems on Stack Overflow, so the "tools used by programmers" is getting less important. Maybe raise it on Meta Stack Exchange to get consensus. – slhck Nov 29 '12 at 17:05
up vote 4 down vote accepted
set splitbelow

will deal with the issue.

You can add

set splitright

for good measure.

share|improve this answer
So there is no specific variable for the preview window? – Profpatsch Nov 28 '12 at 22:33
Ah, and it still moves my main window. :( – Profpatsch Nov 28 '12 at 22:43
You can set its height with set previewheight but nothing more specific. The preview window doesn't really "move" your main window: it reduces its height but the cursorline stays where it is which is the most important, IMO. – romainl Nov 29 '12 at 7:59

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.