X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3309ad4d293d2431008d7ec56faadfdcf334d5b9..8f804c189ce45bff61f388d66ef5c3d4da03a9ce:/after/ftplugin/mkd.vim diff --git a/after/ftplugin/mkd.vim b/after/ftplugin/mkd.vim index b0b0946..ed78895 100644 --- a/after/ftplugin/mkd.vim +++ b/after/ftplugin/mkd.vim @@ -35,14 +35,17 @@ func! Foldexpr_markdown(lnum) endif endfunc -setlocal foldexpr=Foldexpr_markdown(v:lnum) -setlocal foldmethod=expr -"---------- everything after this is optional ----------------------- -" change the following fold options to your liking -" see ':help fold-options' for more -setlocal foldenable -setlocal foldlevel=0 -setlocal foldcolumn=0 -set foldmethod=expr -set foldopen-=search +if !exists("g:vim_markdown_folding_disabled") + setlocal foldexpr=Foldexpr_markdown(v:lnum) + setlocal foldmethod=expr + + "---------- everything after this is optional ----------------------- + " change the following fold options to your liking + " see ':help fold-options' for more + setlocal foldenable + setlocal foldlevel=0 + setlocal foldcolumn=0 + set foldmethod=expr + set foldopen-=search +endif