From: Yosuke OTA Date: Mon, 16 Jun 2014 19:06:42 +0000 (+0900) Subject: Fix folding bug if folding disabled option is 0 X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/2213b7b0fcf07f6917313ce4b5db979a40acf1cb Fix folding bug if folding disabled option is 0 --- diff --git a/after/ftplugin/mkd.vim b/after/ftplugin/mkd.vim index 26ccb23..6026ae8 100644 --- a/after/ftplugin/mkd.vim +++ b/after/ftplugin/mkd.vim @@ -36,7 +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