X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/72dfb0cd388e314fae14e8a925648b6f1957effc..fa07c14220312f708ec88bdbf685c0d02c58f3c4:/after/ftplugin/mkd.vim diff --git a/after/ftplugin/mkd.vim b/after/ftplugin/mkd.vim index 26ccb23..adac473 100644 --- a/after/ftplugin/mkd.vim +++ b/after/ftplugin/mkd.vim @@ -36,21 +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 - - " allow the initial foldlevel to be configured in .vimrc - if !exists("g:vim_markdown_initial_foldlevel") - let g:vim_markdown_initial_foldlevel=0 - endif - let &l:foldlevel=g:vim_markdown_initial_foldlevel - - "---------- everything after this is optional ----------------------- - " change the following fold options to your liking - " see ':help fold-options' for more - setlocal foldenable - setlocal foldcolumn=0 - set foldmethod=expr - set foldopen-=search endif