From 63d8549694485f1f16833c2c7fc206f40492250a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 11 Jul 2009 19:18:11 +0200 Subject: new plugins and keybindings --- .vim/ftplugin/html_snip_helper.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .vim/ftplugin/html_snip_helper.vim (limited to '.vim/ftplugin') diff --git a/.vim/ftplugin/html_snip_helper.vim b/.vim/ftplugin/html_snip_helper.vim new file mode 100644 index 0000000..2e54570 --- /dev/null +++ b/.vim/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-24-g4f1b