1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-23 06:38:06 +01:00

fixed typo in check for file-based snippets

This commit is contained in:
Michael Sanders
2009-03-01 17:24:38 -05:00
parent 6c08f9358d
commit dd8b39a9b5

View File

@@ -19,16 +19,16 @@ 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/') \ '\vimfiles\snippets' : '/.vim/snippets/')
endif endif
if isdirectory(snippets_dir) if !isdirectory(snippets_dir) | finish | endif
if isdirectory(snippets_dir.'_')
if isdirectory(snippets_dir.'_')
call ExtractSnips(snippets_dir.'_', '_') call ExtractSnips(snippets_dir.'_', '_')
endif endif
au FileType * cal s:GetSnippets() au FileType * call s:GetSnippets()
fun s:GetSnippets() fun s:GetSnippets()
for ft in split(&ft, '\.') for ft in split(&ft, '\.')
if !exists('did_ft_'.&ft) && isdirectory(snippets_dir.ft) if !exists('g:did_ft_'.ft) && isdirectory(g:snippets_dir.ft)
cal ExtractSnips(snippets_dir.ft, ft) call ExtractSnips(g:snippets_dir.ft, ft)
endif endif
endfor endfor
endf endf
endif