From 644556ff421bcce26b9cfa67e9dfc1d44216374a Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sat, 28 Feb 2009 19:12:49 -0500 Subject: [PATCH] fixed a typo in the check for global file-based snippets --- after/plugin/snipMate.vim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/after/plugin/snipMate.vim b/after/plugin/snipMate.vim index ca03c39..edebad2 100644 --- a/after/plugin/snipMate.vim +++ b/after/plugin/snipMate.vim @@ -1,4 +1,4 @@ -" These are the mappings for snipMate.vim. Putting it here ensures that it +" These are the mappings for snipMate.vim. Putting it here ensures that it " will be mapped after other plugins such as supertab.vim. if exists('s:did_snips_mappings') || &cp || version < 700 finish @@ -14,15 +14,14 @@ snor bi " By default load snippets in ~/.vim/snippets/ if !exists('snippets_dir') - let snippets_dir = $HOME.(has('win16') || has('win32') || has('win64') ? + let snippets_dir = $HOME.(has('win16') || has('win32') || has('win64') ? \ '\vimfiles\snippets' : '/.vim/snippets/') endif if isdirectory(snippets_dir) - if isdirectory(snippets_dir) - call ExtractSnips(snippets_dir, '_') + if isdirectory(snippets_dir.'_') + call ExtractSnips(snippets_dir.'_', '_') endif - au FileType * if !exists('did_ft_'.&ft) && - \ isdirectory(snippets_dir.&ft) + au FileType * if !exists('did_ft_'.&ft) && isdirectory(snippets_dir.&ft) \| cal ExtractSnips(snippets_dir.&ft, &ft) \| endif endif