lervag / wiki-ft.vim

Simple Vim filetype plugin for wiki-files
MIT License
14 stars 5 forks source link

Fold yaml header #11

Closed BirgerNi closed 2 years ago

BirgerNi commented 2 years ago

I often use Rmarkdown files in my wiki which have a yaml header like this:

---
title: Title of the document
---

Since the content in the yaml header is rarely edited it would be great to have the possibility to fold that by default. Maybe with options like g:wiki_fold_yaml and g:wiki_yaml_foldlevel. What do you think?

lervag commented 2 years ago

I don't use yaml headers in my wiki. I think it could be better to use a more dedicated Markdown filetype plugin, which would support the yaml header and where such an option either already exists or would make more sense.