From 6b9187673ee62d11042832f938913f15131592a7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 1 Feb 2013 01:25:10 -0200 Subject: Adding metadot script --- modules/vim/vim.dot.link/ftplugin/html_snip_helper.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/vim/vim.dot.link/ftplugin/html_snip_helper.vim (limited to 'modules/vim/vim.dot.link/ftplugin') diff --git a/modules/vim/vim.dot.link/ftplugin/html_snip_helper.vim b/modules/vim/vim.dot.link/ftplugin/html_snip_helper.vim new file mode 100644 index 0000000..2e54570 --- /dev/null +++ b/modules/vim/vim.dot.link/ftplugin/html_snip_helper.vim @@ -0,0 +1,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 -- cgit v1.2.3