# Writing a custom fold expression

> Episode of [Vimcasts](https://podistic.com/podcast/vimcasts.md) · Published November 26, 2012 · Duration 12:07

- **Listen on Podistic:** https://podistic.com/episode/writing-a-custom-fold-expression
- **Video:** http://media.vimcasts.org/videos/38/writing-a-foldexpr.m4v (video/x-m4v)

## About this episode

With a little bit of Vimscript, you can create a custom folding expression for any filetype. We’ll start by looking at the mechanics of folding with markers, then go on to create a folding expression for markdown documents.
