citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

html_snip_helper.vim (249B)


      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