]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/ftplugin/html_snip_helper.vim
2e545707819075791184abc7d5fab8c811ea6b77
[rbdr/dotfiles] / vim / ftplugin / html_snip_helper.vim
1 " Helper function for (x)html snippets
2 if exists('s:did_snip_helper') || &cp || !exists('loaded_snips')
3 finish
4 endif
5 let s:did_snip_helper = 1
6
7 " Automatically closes tag if in xhtml
8 fun! Close()
9 return stridx(&ft, 'xhtml') == -1 ? '' : ' /'
10 endf