Tuesday, May 22, 2012

Re: Folding on markdown headers

On May 20, 2012, at 12:20 AM, Chris Jones wrote:

> 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..?

At first I didn't know how to answer. I didn't find anything related to fold method in my .vimrc. Fortunately, I keep copies of emails pertaining to problems I've encountered and solved with the help of people here and at vim_mac. Thank God!

Turns out I'm using Vlad Irnov's markdown folding script. https://gist.github.com/1035030 I'd completely forgotten about it, but it is what takes care of it for me.

> 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 this is something Vlad overlooked? Whatever, the workaround is pretty simple, so thanks again for that.

Sincerely,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net

"Imagining the other is a powerful antidote to fanaticism and hatred."

- Amos Oz

--
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: