mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-31 11:02:33 +01:00
added html helper function for closing tags
This commit is contained in:
10
ftplugin/html_snip_helper.vim
Normal file
10
ftplugin/html_snip_helper.vim
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
" Helper function for (x)html snippets
|
||||||
|
if exists('s:did_snip_helper') || &cp
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let s:did_snip_helper = 1
|
||||||
|
|
||||||
|
" Automatically closes tag if in xhtml
|
||||||
|
fun! Close()
|
||||||
|
return stridx(&ft, 'xhtml') == -1 ? '' : ' /'
|
||||||
|
endf
|
||||||
Reference in New Issue
Block a user