How to stop Vim from scrolling when splitting vertically

Posted by WoLpH on Super User See other posts from Super User or by WoLpH
Published on 2012-04-14T22:01:12Z Indexed on 2012/04/14 23:34 UTC
Read the original article Hit count: 258

Filed under:
|
|

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

© Super User or respective owner

Related posts about vim

Related posts about scrolling