File: html_snip_helper.vim

package info (click to toggle)
vim-snipmate 0.87-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 180 kB
  • ctags: 78
  • sloc: sh: 41; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (4)
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