If you are in the middle of a file and want to scroll, but don't want to move your cursor all the way to the top row, use this:
Ctrl+Y
→ Move viewport downCtrl+E
→ Move viewport up (Extra lines)Ctrl+U
→ Move viewport UpCtrl+D
→ Move viewport DownThose are the default key bindings, they may be different for other layouts/behaviors (like mswin
).
Read everything about scrolling in vim in the linked vimdoc Show archive.org snapshot .