masukomi / vim-markdown-folding

Fold markdown documents by section.
248 stars 43 forks source link

Add option to disable overriding foldtext #7

Closed matze closed 10 years ago

matze commented 11 years ago

Personally, I don't like if plugins try to know what I want to see. This change adds a g:markdown_fold_override_foldtext option to disable overriding the foldtext. Setting the variable to 0 will stop the plugin from setting the custom foldtext function.

inkarkat commented 10 years ago

+1; I've so far used

setlocal foldtext< 

to undo this.

Unfortunately, the author seems to have gone AWOL :-(

nelstrom commented 10 years ago

Sorry for my slow response. I'll try and be a better open source citizen!

I'm trying to decide whether the FoldText() function provided should be opt-out (as your pull request enables) or opt-in. Out of curiosity, what foldtext function do you prefer to use? Is the one that comes out of the box with Vim, or have you written your own folding function?

matze commented 10 years ago

Hi Drew, for most buffer types (Markdown included) I use my own FoldText() function. I always try not to hurt sentiments of software authors, hence it's opt-out in this case ;-)