mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-28 09:22:35 +01:00
fixed a typo in the check for global file-based snippets
This commit is contained in:
@@ -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.
|
" will be mapped after other plugins such as supertab.vim.
|
||||||
if exists('s:did_snips_mappings') || &cp || version < 700
|
if exists('s:did_snips_mappings') || &cp || version < 700
|
||||||
finish
|
finish
|
||||||
@@ -14,15 +14,14 @@ snor <left> <esc>bi
|
|||||||
|
|
||||||
" By default load snippets in ~/.vim/snippets/<filetype>
|
" By default load snippets in ~/.vim/snippets/<filetype>
|
||||||
if !exists('snippets_dir')
|
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)
|
||||||
if isdirectory(snippets_dir)
|
if isdirectory(snippets_dir.'_')
|
||||||
call ExtractSnips(snippets_dir, '_')
|
call ExtractSnips(snippets_dir.'_', '_')
|
||||||
endif
|
endif
|
||||||
au FileType * if !exists('did_ft_'.&ft) &&
|
au FileType * if !exists('did_ft_'.&ft) && isdirectory(snippets_dir.&ft)
|
||||||
\ isdirectory(snippets_dir.&ft)
|
|
||||||
\| cal ExtractSnips(snippets_dir.&ft, &ft)
|
\| cal ExtractSnips(snippets_dir.&ft, &ft)
|
||||||
\| endif
|
\| endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user