This question already has an answer here:
- How to disable horizontal scrolling? 3 answers
If some characters are concealed in a line, so that the effectively the entire line is visible, and
nowrap is set, moving to the end of the line can cause Vim to scroll if the actual line length is greater than what can be displayed. Lines without concealed characters aren't affected.
The terminal is 95 characters wide. The current line is 78 characters long, and since it has nothing concealed, it doesn't scroll. The line above does have concealed characters, and it scrolls, leaving a jagged edge:
The displayed part of both lines fit comfortably in 95 characters. Concealed characters are completely hidden (
set concealcursor=nvic conceallevel=3).
Can I tell Vim to not scroll in such cases?
set sidescrolloff=0 had no effect.
In this case, I'm viewing manpages, and I know that the visible length will never be more than the display area. In this case, just disabling sidescrolling altogether would be fine.