by protomyth · 5y ago · 0 comments
What I do in my ~/.vimrc is:
" Number of lines (context) around the cursor
" You may like 3, or 5, or 10
" A high number keeps the cursor in the middle of the editor
set scrolloff=999
Then... it's always in the middle of the screen/window, even when working at really big resolutions.https://vim.fandom.com/wiki/Keep_your_cursor_centered_vertic...
Don't know a way to set it to a percent, but could be nice too, indeed.