Is there a way to move the screen 20 rows but keep the cursor in the same position in Vim? For example if the cursor is near the top of the screen, and I’d like to read something 15 lines above the cursor, (I believe) I have to type 15k and then 15j to see it.
Share
<C-E> and <C-Y> scroll the screen, so 20<C-Y> will do it.
You could also use zt and zb to scroll until the cursor is at the top or bottom of the screen.