| 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 |