From: codybuell Date: Wed, 13 Jul 2016 21:41:55 +0000 (-0400) Subject: Add documentation for foldtext override X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/c1b9f4adadea1548b54373e951950ca2d6c7aa92?hp=1b4eb9c49c9bb644a4c467c8f56c589007f31067 Add documentation for foldtext override --- 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 ~