From e793a8b6f828d9c84bc641f157cdd5fa3452a8c8 Mon Sep 17 00:00:00 2001 From: jimi Date: Thu, 4 Nov 2010 10:52:30 -0500 Subject: [PATCH] more useabilty tweaks --- ftplugin/eruby/eruby.xpt.vim | 3 +++ ftplugin/html/html.xpt.vim | 51 ++++++++++++++++++++---------------- ftplugin/ruby/ruby.xpt.vim | 18 +++++++------ 3 files changed, 42 insertions(+), 30 deletions(-) diff --git a/ftplugin/eruby/eruby.xpt.vim b/ftplugin/eruby/eruby.xpt.vim index 18023c3..b7b43f0 100644 --- a/ftplugin/eruby/eruby.xpt.vim +++ b/ftplugin/eruby/eruby.xpt.vim @@ -126,3 +126,6 @@ XPT javascript_include_tag synonym=jit " <%= javascript_include_tag... XPT csrf_meta " <%= scrf_meta_tag %> <%= csrf_meta_tag %> + +XPT yield " <%= yield -%> +<%= yield -%> diff --git a/ftplugin/html/html.xpt.vim b/ftplugin/html/html.xpt.vim index b527a33..7ff32ef 100644 --- a/ftplugin/html/html.xpt.vim +++ b/ftplugin/html/html.xpt.vim @@ -37,16 +37,16 @@ XPT doctype5 synonym=doc5 " XPT charset " -XPT skel abbr synonym=html|xhtml " xhtml skeleton +XPT skel synonym=html|xhtml " xhtml skeleton +XSET more=Echo('') `:doctype5:^ `:title:^ - `:charset:^` - `author^ + `:charset:^`more^ - `cursor^ +`cursor^ `:copy_comment:^ @@ -74,7 +74,7 @@ XPT print alias=link XSET src=print.css XSET media=print -XPT jquery abbr synonym=jq " @@ -83,7 +83,7 @@ XSET dir=$js_dir/ XSET src=$empty -XPT jplug abbr synonym=jfile|jp|jf alias=script +XPT jplug synonym=jfile|jp|jf alias=script XPT jscript synonym=js diff --git a/ftplugin/ruby/ruby.xpt.vim b/ftplugin/ruby/ruby.xpt.vim index e712c17..b14a6de 100644 --- a/ftplugin/ruby/ruby.xpt.vim +++ b/ftplugin/ruby/ruby.xpt.vim @@ -2,10 +2,12 @@ " XPTemplate priority=personal+ -XPT def " def .. end -XSET action=Echo(' ') -def `method^` - `action^ +XPT def abbr " def .. end +def `cursor^ +end + +XPT if " if .. end +if `cursor^ end XPT attr " attr_** @@ -53,10 +55,10 @@ XSET val='`screen^' XPT image_tag synonym=imt " image_tag... image_tag('`filename^'`, `opt?^) -XPT loop wrap=content synonym=lambda " $_xSnipName args? do .. end +XPT loop synonym=lambda " $_xSnipName args? do .. end XSET content=Echo('') `$_xSnipName^` `args^ do -` `content^ +` `cursor^ end XPT doe abbr " do .. end @@ -102,5 +104,5 @@ should be_ XPT shnb abbr " should_not be_ should_not be_ -XPT hvs abbr -have_selector(`^) +XPT hvs abbr " have_selector +have_selector