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

To force VIM to keep the cursor vertically centered in the window while the text scrolls, place this directive in your ~/.vimrc
file:
1 |
set so=999 |
To disable it, comment the line out with a double-quote or remove it completely:
1 |
"set so=999 |
Leave Your Comment
All fields marked with "*" are required.