summaryrefslogtreecommitdiffstats
path: root/.vim/ftplugin/html_snip_helper.vim
blob: 2e545707819075791184abc7d5fab8c811ea6b77 (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()
	return stridx(&ft, 'xhtml') == -1 ? '' : ' /'
endf