How to stop Vim from scrolling when splitting vertically
- by WoLpH
The problem
Somehow on this box every time I split a window (^W v or :vs) the original pane scrolls in such a way that my cursor is exactly scrolloff=5 from the top.
I have tried to remove all ~/.vim* and /etc/vim* files but no dice. Even a aptitude purge vim followed by a rm -rf /usr/share/vim/ /etc/vim* didn't change anything.
Note: This seems to be specific to a certain Vim version since I do
not have this on my other boxes with the same .vimrc.
Versions
Vim: 7.3
Ubuntu: 11.04