DEV Community

Discussion on: Vim A to Z - Literally

Collapse
 
caruso profile image
Giuseppe Caruso

Finally, z doesn't take care only of folding, but also of the line position in the buffer by scrolling:

  • zz places the line in the middle of the buffer
  • zt to the top
  • zb to the bottom

Thanks again for the article! Keep on spreading the world about #vim! 🤓

Collapse
 
omerxx profile image
Omer Hamerman • Edited

Important clarification and additions, with your permission I'd like to add your comment with a credit :)

Collapse
 
caruso profile image
Giuseppe Caruso • Edited

Then, you can also add H for moving cursor, without scrolling the page, to the Head, T to the Tail and M (I am not sure by hearth, check this last out) to the Middle. 😉

Collapse
 
caruso profile image
Giuseppe Caruso

My pleasure.