From d319e8a7ed9a70c6edb9642d1bca979965181dab Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sun, 29 Mar 2009 15:52:34 -0400 Subject: [PATCH] fixed loading snippets for Windows --- plugin/snipMate.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/snipMate.vim b/plugin/snipMate.vim index 0e9ddb5..1209ca8 100644 --- a/plugin/snipMate.vim +++ b/plugin/snipMate.vim @@ -106,10 +106,12 @@ let g:did_ft = {} fun! GetSnippets(dir) for ft in split(&ft, '\.') if has_key(g:did_ft, ft) | continue | endif - for path in split(globpath(a:dir, ft.'\(-*\)\=/'), '\n') + for path in split(globpath(a:dir, ft.'/')."\n". + \ globpath(a:dir, ft.'-*/'), "\n") call ExtractSnips(path, ft) endfor - for path in split(globpath(a:dir, ft.'\(-*\)\=.snippets'), '\n') + for path in split(globpath(a:dir, ft.'.snippets')."\n". + \ globpath(a:dir, ft.'-*.snippets'), "\n") call ExtractSnipsFile(path) endfor let g:did_ft[ft] = 1