Is it possible to configure the vim command line to * not * shift the contents of the buffer?

When the vim command window opens ( :help command-line-window), it shifts the contents of the buffer by its height. Is there a way to tell it not to move?

Here is an example of what I mean:

recording of vim buffer shifting

Ideally, the command window opens and simply overlaps the bottom lines.

My assumption is that the command line window is a true section, and therefore, it may not be able to “overlap” another section (main buffer). can't hurt to ask though.

+4
source share
1 answer

You could get closer using

:set scrolloff=N

In this case, having it in 5 would bring the desired effect closer:

enter image description here

, ( ), ( , ). , , script "" , q:.

:mkview! ( script) . , , , , .

+3

All Articles