On 28/10/2005, at 20.19, Allan Odgaard wrote: > You can manually fold them though, and you can semi-automate this > by doing something like a regexp search for: ^#+.*$(?m:.*?)(?=^#+.*$) To also select the last header section in the file: ^#+.*$(?m:.*?)(? =^#+.*$|\z)