vault backup: 2025-03-21 10:29:57
This commit is contained in:
parent
8f487e47ba
commit
2383ed19e7
@ -27,11 +27,24 @@ motions that I can get around easier, and plus since I write in a variety
|
|||||||
of languages things like indent or syntax might not be sufficient or
|
of languages things like indent or syntax might not be sufficient or
|
||||||
expressive enough.
|
expressive enough.
|
||||||
|
|
||||||
## Folding Commands
|
## Creating and Deleting Folds
|
||||||
To create a fold, use `zf{motion}`, where, you guessed it, you can use
|
To create a fold, use `zf{motion}`, where, you guessed it, you can use
|
||||||
just about any of the [[Motions]] you like.
|
just about any of the [[Motions]] you like.
|
||||||
|
|
||||||
Folds can also be created using Visual mode. Select the text, then `zf`.
|
Folds can also be created using Visual mode. Select the text, then `zf`.
|
||||||
|
|
||||||
|
`zd` deletes folds
|
||||||
|
|
||||||
|
`zD` deletes folds recursively. So if you have folds within folds, it will
|
||||||
|
delete those too. If used in visual mode, it will delete all the folds
|
||||||
|
in the window.
|
||||||
|
|
||||||
|
`zE` will eliminate all folds in the current window.
|
||||||
|
|
||||||
|
## Opening and Closing Folds
|
||||||
|
There are three main commands: `za`, `zc`, and `zo`. `zc` and `zo`
|
||||||
|
close and open folds respectively, and have a recursive cousin using
|
||||||
|
a capital letter instead of the lower case letter. `za` is different:
|
||||||
|
it is a toggle between open and closed. Recursively, it may be less useful
|
||||||
|
if there is a mixing of open and closed nested folds. `zA` will switch the
|
||||||
|
the folded status of all of them based on the parent fold (I think.)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user