Reposition the viewport around the current line.
Section: Scrolling and viewport
Move line to top or bottom of screen
vim
vim
zt zbExplanation
`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