junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

Allow scrolling instead of paging #211

Open JakeHuneau opened 4 years ago

JakeHuneau commented 4 years ago

Is there any way for my text to scroll instead of switch between pages as I am moving vertically?

hcf-n commented 4 years ago

Anyone figured out this one? I'm having the same question.

samyakbardiya commented 3 years ago

scrolling is working fine for me, can you please elaborate..??

hcf-n commented 3 years ago

I use softwrap. With softwrap scrolling is not by visual line.

  1. jul. 2020 kl. 06:57 skrev सम्यक् बरड़िया notifications@github.com:

scrolling is working fine for me, can you please elaborate..??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/junegunn/goyo.vim/issues/211#issuecomment-657966440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQAC53Y5MILB2HQ3CETU7TLR3PQU3ANCNFSM4JQKQTPQ.

samyakbardiya commented 3 years ago

I have set this up in my NeoVim config, this make the vertical scrolling by the visible lines instead of actual lines, this is helpful in some cases when a single line is too long.

nnoremap j gj
nnoremap k gk

but befor adding this also scrolling was working fine,

hcf-n commented 3 years ago

Yes, but at the bottom of the screen, vim will still jump to the next actual line.

samyakbardiya commented 3 years ago

isn't it what it is supposed to be..?

hcf-n commented 3 years ago

Yes, this seems to be a feature https://vi.stackexchange.com/questions/4507/scrolling-issues-when-the-wrap-option-is-set