File: html_snip_helper.vim

package info (click to toggle)
vim-snipmate 0.90-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: sh: 15; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 255 bytes parent folder | download
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