From 1b4eb9c49c9bb644a4c467c8f56c589007f31067 Mon Sep 17 00:00:00 2001 From: codybuell Date: Wed, 13 Jul 2016 17:35:21 -0400 Subject: [PATCH 1/1] Add option to disable setting foldtext Prevents foldtext from being overwritten when running with pythonic folding style. Can be set with let g:vim_markdown_override_foldtext=0. --- after/ftplugin/markdown.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/ftplugin/markdown.vim b/after/ftplugin/markdown.vim index 6265db3..cdf0a26 100644 --- a/after/ftplugin/markdown.vim +++ b/after/ftplugin/markdown.vim @@ -150,7 +150,7 @@ let s:vim_markdown_folding_level = get(g:, "vim_markdown_folding_level", 1) if !get(g:, "vim_markdown_folding_disabled", 0) setlocal foldexpr=Foldexpr_markdown(v:lnum) setlocal foldmethod=expr - if get(g:, "vim_markdown_folding_style_pythonic", 0) + if get(g:, "vim_markdown_folding_style_pythonic", 0) && get(g:, "vim_markdown_override_foldtext", 1) setlocal foldtext=Foldtext_markdown() endif endif -- 2.39.5