X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2c060f0e258e757a4736e625c0e48732b19e5289..34de7d90c2f3f19f06e038ad4449d2825fbab941:/after/ftplugin/mkd.vim diff --git a/after/ftplugin/mkd.vim b/after/ftplugin/mkd.vim index ed78895..26ccb23 100644 --- a/after/ftplugin/mkd.vim +++ b/after/ftplugin/mkd.vim @@ -40,11 +40,16 @@ if !exists("g:vim_markdown_folding_disabled") 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 foldlevel=0 setlocal foldcolumn=0 set foldmethod=expr set foldopen-=search