X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2c060f0e258e757a4736e625c0e48732b19e5289..e5af33f813cf0f26e7a125eb734c5f4a9597306e:/after/ftplugin/mkd.vim?ds=inline diff --git a/after/ftplugin/mkd.vim b/after/ftplugin/mkd.vim index ed78895..adac473 100644 --- a/after/ftplugin/mkd.vim +++ b/after/ftplugin/mkd.vim @@ -36,16 +36,7 @@ func! Foldexpr_markdown(lnum) endfunc -if !exists("g:vim_markdown_folding_disabled") +if !get(g:, "vim_markdown_folding_disabled", 0) 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