From: James Blanding Date: Wed, 29 Jan 2014 16:40:55 +0000 (-0800) Subject: Merge pull request #63 from monokrome/patch-1 X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/ad8729c321bb27c90f2f5d1ae932a7ed59ad03e6?hp=7305d5167800429dd4c75ce5954a098f3c9cb72c Merge pull request #63 from monokrome/patch-1 Fix unletting non-existant b:current_syntax. --- diff --git a/syntax/mkd.vim b/syntax/mkd.vim index c4ceec4..afc7824 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -15,7 +15,10 @@ if version < 600 so :p:h/html.vim else runtime! syntax/html.vim - unlet b:current_syntax + + if exists('b:current_syntax') + unlet b:current_syntax + endif endif if version < 600