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