Centering Commands

Keystrokes

Command name

Description

M-s

center-line

Center line that cursor is on.

M-S

center-paragraph

Center paragraph that cursor is on.

(none)

center-region

Center currently defined region.

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.