From fdc7e5e79d19261b2077f96c2d4f6b8837857120 Mon Sep 17 00:00:00 2001 From: Dane Sabo Date: Fri, 21 Mar 2025 11:02:18 -0400 Subject: [PATCH] vault backup: 2025-03-21 11:02:18 --- 3-99 Research/VIM/Folding.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/3-99 Research/VIM/Folding.md b/3-99 Research/VIM/Folding.md index 8eab04bb1..86e98cfd2 100644 --- a/3-99 Research/VIM/Folding.md +++ b/3-99 Research/VIM/Folding.md @@ -48,3 +48,24 @@ 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.) + +There are additional commands for opening and closing folds that may be useful. +`zm` will fold 'more', where it will fold to a certain nested +level. `zM` will close all folds. `zr` will fold 'less', where it will reveal +more. `zR` will open all folds. + +There are two commands that will also change the enabled-ness of folding. +`zn` will open all folds and disable folding, while `zN` will set all +folds back to how they were before, and enable folding again + +## Moving over folds +`[z` and `]z` will move to the beginning and end of the current open fold, +or to the start / end of the parent fold from the child fold. `zj` and `zk` +will move to the next fold in that direction.`zj` and `zk` can also be used +with operators before hand (`3zj` is down 3 folds). + + +## Editing and Commands on Folds +Closed folds act a lot like single lines with commands. `dl` for example will +not delete the current line if on a closed fold, it will delete everything in +the fold, period.