Brought back snipMate compatibility file. We cannot rely on people tracking vim-snippets to have the renmamed version of this available there.
This commit is contained in:
parent
5c8e3ca488
commit
bca51cb403
15
plugin/snipMate_compatibility.vim
Normal file
15
plugin/snipMate_compatibility.vim
Normal file
@ -0,0 +1,15 @@
|
||||
if exists('did_UltiSnips_snipmate_compatibility')
|
||||
finish
|
||||
endif
|
||||
let did_UltiSnips_snipmate_compatibility = 1
|
||||
|
||||
if ! exists('g:snips_author')
|
||||
let g:snips_author = "John Doe"
|
||||
endif
|
||||
|
||||
" Filename function, taken from snipMate.vim
|
||||
fun! Filename(...)
|
||||
let filename = expand('%:t:r')
|
||||
if filename == '' | return a:0 == 2 ? a:2 : '' | endif
|
||||
return !a:0 || a:1 == '' ? filename : substitute(a:1, '$1', filename, 'g')
|
||||
endf
|
Loading…
Reference in New Issue
Block a user