set wrap, is there any way to not show the whole logical line when scrolling after the last line or before the first with
gk, but only the visual line?
The goal is to prevent jerky movements when 'scrolling', especially when dealing with very long lines (prose) or narrow splits.
Basically, I'd like my cursor to stay on the same line when scrolling, which should be the bottom most line when 'scrolloff' is set to zero when scrolling down (or the top most when going up).
I know this is not the intended behavior of Vim, but I think some kind of script could do the trick. No answer on the internet seems to provide this, though, and I'm not sure how I could achieve this (my knowledge of vimscript is basic to say the least).
set tw=winwidth(0) but it does not affect the behavior.
This topic does not answer the question and is five years old.
Thanks for your time!
CTRL-Y are behaving the same (scrolling by logical line, I guess for the same reason),
display=lastline does not affect the behavior, neither does
Here's my vimrc, just in case.