X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/cd4ca88ddafeea5a7bb3cfa27c31142f20709113..fa07c14220312f708ec88bdbf685c0d02c58f3c4:/after/ftplugin/mkd.vim?ds=sidebyside diff --git a/after/ftplugin/mkd.vim b/after/ftplugin/mkd.vim index b0b0946..adac473 100644 --- a/after/ftplugin/mkd.vim +++ b/after/ftplugin/mkd.vim @@ -35,14 +35,8 @@ 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 !get(g:, "vim_markdown_folding_disabled", 0) + setlocal foldexpr=Foldexpr_markdown(v:lnum) + setlocal foldmethod=expr +endif