This has been asked on stackoverflow before, but it seems it still has no solution. Perhaps that has changed with Vim 8.0.
I'd like to be able to scroll (i.e. scroll-wheel, or
<C-e> in normal mode) by visual lines when line-wrapping is enabled, rather than by line number. This can come in handy for text documents (in my case, LaTeX files).
Any chance Vim 8.0 allows this somehow? Or can anyone suggest a vimscript
function hack that might accomplish the same thing?
<C-e>(in this case, we'd want the map to be recursive/global, so would use
map). Maybe there's some way to determine "how many wrapped lines does this line have?" Seems like the fact that Vim gives the option to display partial lines going on/offscreen implies there must be some convoluted way to do it.
set display=lastline, but I see what you mean; windows must always start on the first wrapped line of a line. Seems to me that aspect is what makes this impossible.