Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

New answers tagged

0

(Moved to a separate answer for visibility) According to @Christian Brabandt the characters used for this purpose are hardcoded.


0

This answer is more of a hack than a real solution to your question. From the text you show, it seems you may rely on indentation for your folding. If so, you can use set foldmethod=indent. A little function I use in such case: function! FoldAll() set ...


1

This is due to :h 'fillchars' option. You need set fcs=fold:\ ,vert:\|


1

would like a :refold command` command! -range -addr=windows Refold call ResetWinOpts(<line1>, <line2>, ['fdm', 'fdl', ...]) command! RefoldAll tabdo %Refold " reset options through a window-range to global values function! ResetWinOpts(winid1, winid2, opts) call execute(printf("%s,%swindo setl %s<", a:winid1, a:winid2, join(a:opts, "< ...


2

It would be really hard to do reliably. Basically, if you brave enough, check what current markdown plugin uses for folding and try to rewrite it: :set foldmethod? to find out if it is expr or not :set foldexpr? to find out what is the function name expr uses create your own MarkdownFold() function (or whatever name is 2. showed) So you would end up copy ...


Top 50 recent answers are included