diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-06-03 00:42:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-06-03 00:42:21 -0500 |
commit | 56d3d04eb0503c871580de5b3a995ffc10809945 (patch) | |
tree | 70a065bf20022153e51306594b2f827997ef0a93 /vim/ftplugin | |
parent | 9e4bbb4e831b6d705d75e0ea6b2957818ffb09de (diff) | |
download | conf-56d3d04eb0503c871580de5b3a995ffc10809945.tar.gz conf-56d3d04eb0503c871580de5b3a995ffc10809945.zip |
add the snipmate plugin
Diffstat (limited to 'vim/ftplugin')
-rw-r--r-- | vim/ftplugin/html_snip_helper.vim | 10 |
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 |