Saturday, May 19, 2012

Re: Folding on markdown headers

On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote:

> When I create a file with markdown headers and save it, folding on the
> headers does not work.
>
> When I create a file with markdown headers, save it, close the window,
> and open the file in a new window, folding on the headers works.
>
> Why in the one case and not in the other?

On a different line, now that you have found a workaround...

What folding method are you using..?

Reason I'm asking is that I don't use 'markdown' (which I understand is
a lightweight markup language?) but I ran a quick test and both with
fdm=marker and fdm=suntax, I see folds being created instantly w/o
having to save or reload the buffer or any other action on my part.

Maybe s/o more knowledgeable than myself re: Vim's innards will chime in
& will be able to figure out what's going on and recommend some
autocommand trick or other that would force Vim to handle your folds
automatically and save you the trouble of reloading the file..?

CJ

--
SOMEBODY SET UP US THE BOMB

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: