In Vim, I don't like how when you reach end of file it puts the last line at the bottom of the screen.
Is there anyway to make the last line be something like 10 lines above the bottom of the screen and just make blank lines under it?
You can use ctrlE to scroll down your file, when you are at the end of the file it will add "virtual" line so the last line of the file is not at the bottom of the windows.
Additionally you can use the option
scrolloff to always let some lines after your cursor, add this to your
The easiest solution, in my opinion, was adding
k. It has the major side effect of centering your cursor. I don't mind and much prefer it to craning my neck. I tried
CTRL-E is just uncomfortable.
Type the following in
: or .vimrc
nnoremap j jzz
nnoremap k kzz