1

Lets say there are multiple splits at the following layout. Is it possible to keep the last two placed in their position when the editing area is closed or unloaded from the buffer list, and fill its remaining real estate with void tilde lines.

--------------------------------------------------------
|                                                      |
|                                                      |
|                                                      |
|                      Editing Area                    |
|                                                      |
|                                                      |
|                                                      |
|                                                      |
|                                                      |
|------------------------------------------------------|
|                                                      |
|        Another Buuffer                               |
|                                                      |
--------------------------------------------------------
|                                                      |
|        Quickfix list                                 |
|                                                      |
--------------------------------------------------------

2 Answers 2

0

I recommend to use the vim-bbye plug-in and the associated :Bd command.

It unloads the buffer but keep the layout.

1

Every window must show exactly one buffer at any moment.

If you don't need some buffer anymore then open another one with :e foobar.txt or create a new one with :enew.

1
  • It would still redraw the windows, empty buffer would be just hidden.
    – polendina
    Apr 8, 2022 at 14:06

Your Answer

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

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