title: How to prevent Vim scrolling when splitting a window?
body: <p>I want to stop Vim from scrolling (if that's the right word) when I split a window horizontally.</p>
  
  <p>Let's say I edit a 10 line file in Vim.  I have a single window onto the buffer and the window is 40 lines high.  There's more than enough room for two windows, one on top of the other, with both showing the whole buffer.  And let's say <code>scrolloff</code> is set to 4.</p>
  
  <p>When I split the window horizontally, the original window is scrolled so that exactly <code>scrolloff</code> lines are shown between the top of the window and the line the cursor is on -- if there were more than <code>scrolloff</code> lines between the top of the window and the cursor line -- even though there is no need to scroll.</p>
  
  <p>Put another way, if the cursor is on line 1, 2, 3, 4 or 5 when I split the window, the original window doesn't "move" (good).  But if the cursor is on line 6, the window scrolls so that line 2 becomes the top-most visible line...ensuring <code>scrolloff</code> lines (4) are visible above the cursor line (annoying).  Similarly if the cursor is on line 7 when I split the window, the original window scrolls to that line 3 becomes the top-most visible line.  And so on.</p>
  
  <p>Is there a way to configure Vim never to scroll the original window when I split it horizontally?</p>
  
  <p>I imagine it's possible to map <code>&lt;C-W&gt;s</code> to a function which does what I want, but I'd prefer to solve this by configuration if possible.</p>