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:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user