From c1b9f4adadea1548b54373e951950ca2d6c7aa92 Mon Sep 17 00:00:00 2001 From: codybuell Date: Wed, 13 Jul 2016 17:41:55 -0400 Subject: [PATCH 1/1] Add documentation for foldtext override --- README.md | 6 ++++++ doc/vim-markdown.txt | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 9c6665e..f5cbaf9 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,12 @@ let g:vim_markdown_folding_style_pythonic = 1 Level 1 heading which is served as a document title is not folded. `g:vim_markdown_folding_level` setting is not active with this fold style. +To prevent foldtext from being set add the following to your `.vimrc`: + +```vim +let g:vim_markdown_override_foldtext = 0 +``` + ### Set header folding level Folding level is a number between 1 and 6. By default, if not specified, it is set to 1. diff --git a/doc/vim-markdown.txt b/doc/vim-markdown.txt index eb61653..339fdaf 100644 --- a/doc/vim-markdown.txt +++ b/doc/vim-markdown.txt @@ -96,6 +96,10 @@ To fold in a style like python-mode [6], add the following to your '.vimrc': Level 1 heading which is served as a document title is not folded. 'g:vim_markdown_folding_level' setting is not active with this fold style. +To prevent foldtext from being overridden, add the following to your '.vimrc': + + let g:vim_markdown_override_foldtext = 0 + ------------------------------------------------------------------------------- *vim-markdown-set-header-folding-level* Set header folding level ~ -- 2.39.5