From b6794ab2d8cd01763aac0d5e9551a5a253e6ba5d Mon Sep 17 00:00:00 2001 From: jimi Date: Tue, 2 Nov 2010 14:48:30 -0500 Subject: [PATCH] More rails-centric changes... - eruby: add 'if notice' loop as an update to the older 'if flash[:notice]' construct - html: alias 'p' tag to tagAttr --- ftplugin/eruby/eruby.xpt.vim | 5 +++++ ftplugin/html/html.xpt.vim | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ftplugin/eruby/eruby.xpt.vim b/ftplugin/eruby/eruby.xpt.vim index 4220043..18023c3 100644 --- a/ftplugin/eruby/eruby.xpt.vim +++ b/ftplugin/eruby/eruby.xpt.vim @@ -42,6 +42,11 @@ XPT ifl " <% if flash[...
<%= flash[:`notice^] %>
`:end:^ +XPT ifn " <% if notice... +<% if `notice^ -%> +

<%= `notice^ %>

+<% end -%> + XPT flash.each synonym=flea " <% flash.each do |args... XSET cursor=Echo('') <% flash.each do |key, value| -%> diff --git a/ftplugin/html/html.xpt.vim b/ftplugin/html/html.xpt.vim index dbda115..b527a33 100644 --- a/ftplugin/html/html.xpt.vim +++ b/ftplugin/html/html.xpt.vim @@ -108,6 +108,8 @@ XPT span alias=tagAttr XPT div alias=tagAttr +XPT p alias=tagAttr + XPT tr abbr alias=tagAttr XPT td abbr alias=tagAttr