How To Change Cursor-position-based Window Scrolling In VIM

Published Date Author: , Posted September 30th, 2011 at 10:46:07am

To force VIM to keep the cursor vertically centered in the window while the text scrolls, place this directive in your ~/.vimrc file:

To disable it, comment the line out with a double-quote or remove it completely:

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.