Scrolling window "1 screen line" up or down

28 views
Skip to first unread message

Arun E

unread,
May 7, 2025, 2:35:51 PMMay 7
to vim...@googlegroups.com
Hi,

Context: when viewing text files with long lines, along with 'linebreak' on.

I see that Ctrl-E/Ctrl-Y scrolls one line at a time, but jumps a few screen lines (depending on how long the line is) upon encountering a long line. This is a bit awkward. I could set 'wrap' to avoid this, but that defeats the purpose of reading. Is there any way to make the scrolling smoother with long lines present?

gk/gj is nice to go up/down longer lines. It would be nice to have a g_CTRL-Y/g_CTRL-E to do something similar in idea over longer lines.

Regards,
-Arun

Christian Brabandt

unread,
May 7, 2025, 3:25:19 PMMay 7
to vim...@googlegroups.com
Can you try :h 'smoothscroll' ?

Thanks,
Christian
--
"OK, now let's look at four dimensions on the blackboard."
-- Dr. Joy

Arun E

unread,
May 7, 2025, 3:55:03 PMMay 7
to vim...@googlegroups.com
On Wed, May 7, 2025 at 12:25 PM Christian Brabandt <cbl...@256bit.org> wrote:

On Wed, 07 May 2025, Arun E wrote:

> Hi,
>
> Context: when viewing text files with long lines, along with 'linebreak' on.
>
> I see that Ctrl-E/Ctrl-Y scrolls one line at a time, but jumps a few screen
> lines (depending on how long the line is) upon encountering a long line. This
> is a bit awkward. I could set 'wrap' to avoid this, but that defeats the
> purpose of reading. Is there any way to make the scrolling smoother with long
> lines present?
>
> gk/gj is nice to go up/down longer lines. It would be nice to have a g_CTRL-Y/
> g_CTRL-E to do something similar in idea over longer lines.

Can you try :h 'smoothscroll' ?


Perfect! Thanks Christian. 
Reply all
Reply to author
Forward
0 new messages