summaryrefslogtreecommitdiffstats
path: root/.vim/ftplugin
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-07-11 19:18:11 +0200
committerFlorian Pritz <f-p@gmx.at>2009-07-11 19:18:11 +0200
commit63d8549694485f1f16833c2c7fc206f40492250a (patch)
treeaa2c8294788bfe5525c40442a2ead8fe8623d903 /.vim/ftplugin
parent17c9fb56433064f0535e2727d2cf4a3f4faeb7d8 (diff)
downloaddotfiles-63d8549694485f1f16833c2c7fc206f40492250a.tar.gz
dotfiles-63d8549694485f1f16833c2c7fc206f40492250a.tar.xz
new plugins and keybindings
Diffstat (limited to '.vim/ftplugin')
-rw-r--r--.vim/ftplugin/html_snip_helper.vim10
1 files changed, 10 insertions, 0 deletions
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