vim

Scrolling

Scrolling downwards

Command Description
Ctrl+E Scroll one line down.
Ctrl+D Scroll half a screen down (configurable using the scroll option).
Ctrl+F Scroll a full screen down.
z+ Draw the first line below the window at the top of the window.

Scrolling upwards

Command Description
Ctrl+Y Scroll one line up.
Ctrl+U Scroll half a screen up (configurable using the scroll option).
Ctrl+B Scroll a full screen up.
z^ Draw the first line above the window at the bottom of the window.

Scrolling relative to cursor position

Command Description
z Redraw current line at the top of the window and put the cursor on the first non-blank character on the line.
zt Like z but leave the cursor in the same column.
z. Redraw current line at the center of the window and put the cursor on the first non-blank character on the line.
zz Like z. but leave the cursor in the same column.
z- Redraw current line at the bottom of the window and put the cursor on the first non-blank character on the line.
zb Like z- but leave the cursor in the same column.

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow