html_snip_helper.vim 249 B

12345678910
  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. " Automatically closes tag if in xhtml
  7. fun! Close()
  8. return stridx(&ft, 'xhtml') == -1 ? '' : ' /'
  9. endf