finish
endif
-function RemoveEmptySuperClass()
+function! RemoveEmptySuperClass()
s/^extends '<{}>';\n//e
return @z
endfun
-function RemoveEmptyLine()
+function! RemoveEmptyLine()
s/^\s*<{}>\s*\n//e
return @z
endfun
-function Snippet(abbr, str)
+function! Snippet(abbr, str)
if type(a:str) == type([])
return Snippet(a:abbr, join(a:str, "\n"))
endif
exec 'Snippet '.a:abbr.' '.str
endfunction
-function SnippetFile(filename)
+function! SnippetFile(filename)
let abbr = fnamemodify(a:filename, ':t:r')
let str = readfile(a:filename)
return Snippet(abbr, str)