diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2013-12-27 15:32:50 -0200 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2013-12-27 15:32:50 -0200 |
| commit | 5032aca04f4d0bce092ade66fe914c34af357a5e (patch) | |
| tree | 3ba885989ff09b1ab3eb0a16ac865e797c8ca0e7 /vim.dot.link/ftplugin | |
| download | vim-5032aca04f4d0bce092ade66fe914c34af357a5e.tar.gz vim-5032aca04f4d0bce092ade66fe914c34af357a5e.tar.bz2 | |
Initial import
Diffstat (limited to 'vim.dot.link/ftplugin')
| -rw-r--r-- | vim.dot.link/ftplugin/html_snip_helper.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vim.dot.link/ftplugin/html_snip_helper.vim b/vim.dot.link/ftplugin/html_snip_helper.vim new file mode 100644 index 0000000..2e54570 --- /dev/null +++ b/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 |
