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.

  • 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
set splitbelow

will deal with the issue.

You can add

set splitright

for good measure.

| 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.