When I open a new split Vim is scrolling both buffers up despite having enough space.Here is an asciicastThis behaviour comes out-of-the box in vim -u NONE.It is really annoying. My guess it tries to keep the cursor in the middle of the screen or something. But even if the both splits end up well above the middle line the buffers are being scrolled up.Is there a way to turn it off? Thanks.
How to prevent Vim from scrolling buffers when I open split
split;scrolling
I found a solution which came from Vim's own help docs.  It's not perfect but it is an improvement.nnoremap <C-W>s Hmx`` \|:split<CR>`xzt``