I have a split window with two buffers visible, and the top one is active and maximized using
I put the cursor in the middle of the visible buffer, or at the bottom.
j, to activate the split on the bottom, and
UNDERSCORE to maximize it. So far, so good.
Now, I go back up to the top split using
k. Again, all good so far.
UNDERSCORE and the buffer maximizes, but now the file has been scrolled (compared to how it looked the last time I was looking at this same buffer in maximized state) such that the cursor is now on the first visible line.
That is to say, the cursor is on the same line of the buffer that it was before, but the contents of the buffer have moved up in the viewport so that the cursor is now at the TOP of the viewport. When I last saw the buffer maximized, the cursor was at the middle or bottom of the viewport.
This is really bugging me. I just today compiled Vim 7.4 and this is not how it used to be in Vim 7.2 (Redhat 6.4). I have verified that Vim 7.2 leaves the viewport how I last left it, but Vim 7.4 does not.
Is there a way to configure Vim 7.4 to act like Vim 7.2 in this regard?