navigation

Ctrl-D / Ctrl-U

Ctrl-D scrolls the view (and cursor) half a screen down; Ctrl-U scrolls half a screen up. Faster than jkjk when skimming a long file, and the cursor stays in a predictable place on screen.

<C-d>  <C-u>  (normal mode)

Variations

Keystroke Effect
<C-f> Full page down (like PgDn)
<C-b> Full page up (like PgUp)
<C-e> Scroll one line down WITHOUT moving cursor
<C-y> Scroll one line up without moving cursor

Examples

<C-d>

Move down half a screen

<C-u>

Move up half a screen

10<C-d>

Set scroll amount to 10 lines and scroll down

Gotcha

Passing a count (10) permanently changes the 'scroll' amount for the session. In insert mode Ctrl-D DEDENTS the current line — different feature.

Related

← All Vim commands · Vim cheat sheet