aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snipmate/ftplugin/html_snip_helper.vim
blob: 4d523922d817125cf69e85c9fa01cd03a8662d3b (plain)
1
2
3
4
5
6
7
8
9
10
" Helper function for (x)html snippets
if exists('s:did_snip_helper') || &cp || !exists('loaded_snips')
	finish
endif
let s:did_snip_helper = 1

" Automatically closes tag if in xhtml
fun! Close() abort
	return stridx(&ft, 'xhtml') == -1 ? '' : ' /'
endf