Vim / Neovim Basics: Modes and Navigation/Move line to top or bottom of screen

Reposition the viewport around the current line.

Section: Scrolling and viewport

Move line to top or bottom of screen

vim
vim
zt  zb
Explanation

`zt` puts the current line at the top; `zb` at the bottom.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Scrolling and viewport
Center current line
Recenter the viewport around the cursor line.
OpenIn sheetvimsame section
Half-page scrolling
Scroll quickly without losing context.
OpenIn sheetvimsame section
Enter insert mode
Start typing before or after the cursor.
OpenIn sheetvim1 tag match
Move with home-row keys
Navigate left, down, up, and right.
OpenIn sheetvim1 tag match
Return to normal mode
Leave insert or visual mode.
OpenIn sheetvim1 tag match
Move by words
Jump by word starts and ends.
OpenIn sheetvim1 tag match