I'm a bit of a vim novice, but I'm having difficulty finding resources to help me with this problem.
When I move my cursor to the bottom of my file, I want it to keep going past the final line, preferably up until the last line is at the top of my window, but indefinitely would be fine too. My current solution consists of putting set scrolloff=20
in my ~/.vimrc
and then doing G
+ zz
to get to the bottom. But if I scroll up and back down, I'm stuck with the last line plastered to the bottom again.
I understand that because there are no newlines after the file it doesn't really have anything to scroll into, but nonetheless it's annoying that I can't edit my file with the bottom line around the middle of my window.
So ultimately I want it that when I'm at the bottom line I can hold down j
and it'll just scroll down. Is there a way to do this?