DEV Community

Discussion on: Vim A to Z - Literally

Collapse
 
simonced profile image
simonced

Nice article.
Continuing with z, zf will create a fold on what is selected.
za will toggle folds. I use those all the time.

Also, zl will scroll right (good for long lines).
and zh goes left.
You can also scroll more than 1 character at a time like so:
z20l.

Happy Viming.

Collapse
 
omerxx profile image
Omer Hamerman

Thanks for the additions! Some stuff, like folds (which I also use from time to time) I left out to try and focus on things that matter and make phonetic logic. I linked to my Vim notebook on Github where it goes further to explain.