2

As title. Say I have three splits top, middle, bottom. I want to create a new split from the bottom(so the result will be top, middle, bottom, new_bottom), even if my current is at either top or middle. Is this possible?

1 Answer 1

2

I believe you want :botright new <filename> or simply :botright new for creating an empty buffer.

:bo[tright] {cmd}
                Execute {cmd}.  If it contains a command that splits a window,
                it will appear at the bottom and occupy the full width of the
                Vim window.  When the split is vertical the window appears at
                the far right and occupies the full height of the Vim window.
                Doesn't work for :execute and :normal.
3
  • Instead of :botright new <file>, more likely :botright [v]split <file-or-buffer>
    – D. Ben Knoble
    Jun 22, 2022 at 0:24
  • Is there a difference?
    – r_31415
    Jun 22, 2022 at 1:16
  • 1
    Technically :new <file> is documented as equivalent to :split, so no; the only difference is in my head when I think about what I'm doing
    – D. Ben Knoble
    Jun 22, 2022 at 1:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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