There are some built-in key combinations to move the screen:
zt - move the screen so the cursor is on the top (vertical)zb - move the screen so the cursor is on the bottom (vertical)zz - move the screen so the cursor is at the center (vertical)zs - move the screen so the cursor is at the start (horizontal)ze - move the screen so the cursor is at the end (horizontal)To me it feels weird that there is no way to move the screen so the cursor is at the center horizontally. This can be achieved using zszH, but it is one more thing to think about.
zszH is a better fit then zezL because it does the right thing when the cursor is at the start of the line.
I would like to propose to add a built-in mapping that is equivalent to nnoremap zZ zszH.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()