Skip to content

Vim Folds

Resources

Folding based on regex

Let's say you have a paragraph that you want to always get folded in a buffer. Eg. foam adds the following to every page:


So, to auto fold the above, you would need:

```vim