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
Published at
2025-03-11 12:47:19Event JSON
{
"id": "d497c2546b18a60f1e50d3221893f19ea67494fd63d9910c0d1feb21777ec65d",
"pubkey": "3d393b82c3042be8ead657b609d054c8d934be0e269bf74c56f72f63ea48d0df",
"created_at": 1741697239,
"kind": 1,
"tags": [
[
"proxy",
"https://polymaths.social/users/rl_dane/statuses/01JP2KXJ8JZVGEQ2AXH1MZC0T1",
"activitypub"
]
],
"content": "Hey #VimWizards,\n\nIs there any way to scroll the screen while keeping the cursor fixed to its relative position onscreen?\n\nRegular [jk] will move the cursor (and scroll once you reach the top or bottom of the screen and try to scroll beyond it)\n\nControl+[jk] will move the screen, but keep the cursor locked in its position relative to the text.\n\nI'd like to have the cursor locked in the middle of the screen (or wherever) while scrolling.\n\nJust a random idea, I thought someone might know. ;)\n\nWAIT! I think I found it! haha:set scrolloff=999\n",
"sig": "dbc2100b03a86341d59d1c7decdabfdf6867770ff917df4fd1b06c9663b9c0f1cc15a404bebc836ae105c4e106d6a45d8a2e3574684a8abc15e3594293c4b6a0"
}