From 43fc48f2b06c15c78e1ed30ae30bab3457ec674d Mon Sep 17 00:00:00 2001 From: jimi Date: Fri, 6 Aug 2010 18:20:55 -0500 Subject: [PATCH] Update eruby and html snippets, initial css file - eruby: add submit, stylesheet link, and javascript_include tags - html: doctypes, content meta, rss link, icon link --- ftplugin/css/css.xpt.vim | 0 ftplugin/eruby/eruby.xpt.vim | 9 +++++++++ ftplugin/html/html.xpt.vim | 26 ++++++++++++++++++++++---- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 ftplugin/css/css.xpt.vim diff --git a/ftplugin/css/css.xpt.vim b/ftplugin/css/css.xpt.vim new file mode 100644 index 0000000..e69de29 diff --git a/ftplugin/eruby/eruby.xpt.vim b/ftplugin/eruby/eruby.xpt.vim index 5bc3b9d..8ccc647 100644 --- a/ftplugin/eruby/eruby.xpt.vim +++ b/ftplugin/eruby/eruby.xpt.vim @@ -89,3 +89,12 @@ XPT fsubmit " <%= f.submit... XPT render_partial synonym=rp " <%= render :partial... XSET name=Echo('') <%= render :partial => "`name^" %> + +XPT submit_tag " <%= submit_tag... +<%= submit_tag "`label^" %> + +XPT stylesheet_link_tag synonym=slt " <%= stylesheet_link_tag... +<%= stylesheet_link_tag `^ %> + +XPT javascript_include_tag synonym=jit " <%= javascript_include_tag... +<%= javascript_include_tag `^ %> diff --git a/ftplugin/html/html.xpt.vim b/ftplugin/html/html.xpt.vim index 8891d25..7809170 100644 --- a/ftplugin/html/html.xpt.vim +++ b/ftplugin/html/html.xpt.vim @@ -28,14 +28,23 @@ XSET meta_content=Echo('') XPT keywords alias=meta " + +XPT doctype5 " + + +XPT content5 " + XPT skel abbr synonym=html|xhtml " xhtml skeleton - +`:doctype5:^ `:title:^ - `:contenttype:^` - `more^.^ + `:content5:^` + `author^ `cursor^ @@ -48,6 +57,15 @@ XSET dir=$css_dir/ XSET src=base.css +XPT alternate " + +XPT icon " + XPT reset synonym=fonts|base|grids|layout XSET name=$_xSnipName.css `:link( { 'src' : 'name' } ):^