1

How can I open a page from buffer below or to the right of the page I'm already viewing? By the way I want to open split the whole page not only the page I'm currently in. imagine I have to rows and I want a column to the right of both rows that contains one file so I'll get from

_

to:

 |_
 |

And the new file is opened from buffer. actually I would love to know the general answer for how to kinda temporarily group some splits together and add a new split below them as a whole or to the right of them as a whole.

3

:sbuffer is a split variant of :buffer. :sb takes the same parameters :b i.e. buffer numbers or buffer names.

:sb foo

You can split this below by using :rightbelow command or 'splitbelow' option.

:rightb sb foo

As @Naumann said you can use <c-w> followed by H/J/K/L to move windows/splits however you want.

For more help see:

:h :sb
:h :rightb
:h 'splitbelow'
2

two steps:

:sp newfile

and then press

<c-w>J rsp <c-w>L

  • I don't want to open a new file I want to open a file from buffer. A file that I've just closed. – yukashima huksay Oct 6 '17 at 13:12
  • Oh I can just use :b now on the newfile:D thanks:P – yukashima huksay Oct 6 '17 at 13:14

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.