Why Nostr? What is Njump?
2025-03-11 12:47:19

R.L. Dane :Debian: :OpenBSD: 🍵 on Nostr: Hey #VimWizards, Is there any way to scroll the screen while keeping the cursor fixed ...

Hey #VimWizards,

Is there any way to scroll the screen while keeping the cursor fixed to its relative position onscreen?

Regular [jk] will move the cursor (and scroll once you reach the top or bottom of the screen and try to scroll beyond it)

Control+[jk] will move the screen, but keep the cursor locked in its position relative to the text.

I'd like to have the cursor locked in the middle of the screen (or wherever) while scrolling.

Just a random idea, I thought someone might know. ;)

WAIT! I think I found it! haha:set scrolloff=999
Author Public Key
npub185unhqkrqs4736kk27mqn5z5ervnf0swy6dlwnzk7uhk86jg6r0set8tc6