From b6ef2333b42bda4d31e90110b94df3350c764de8 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Wed, 7 Sep 2016 11:16:45 +0300 Subject: [PATCH] syntax fix for subdirs --- syntax/snippets.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/snippets.vim b/syntax/snippets.vim index 86fe65a..acd6403 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -5,7 +5,7 @@ if exists("b:current_syntax") finish endif -if expand("%:p:h:t") == "snippets" && search("^endsnippet", "nw") == 0 +if expand("%:p:h") =~ "snippets" && search("^endsnippet", "nw") == 0 \ && !exists("b:ultisnips_override_snipmate") " this appears to be a snipmate file " It's in a directory called snippets/ and there's no endsnippet keyword