From 3ecf4882e358e9f9a44a959c9e3589f227ac3dea Mon Sep 17 00:00:00 2001 From: jimi Date: Sat, 7 Aug 2010 12:30:46 -0500 Subject: [PATCH] Refactor stylesheets in html & eruby, IE if blocks --- ftplugin/html/html.xpt.vim | 25 +++++++++++++++++++++---- ftplugin/ruby/ruby.xpt.vim | 4 +++- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/ftplugin/html/html.xpt.vim b/ftplugin/html/html.xpt.vim index d045669..3e4a05c 100644 --- a/ftplugin/html/html.xpt.vim +++ b/ftplugin/html/html.xpt.vim @@ -5,8 +5,8 @@ XPTemplate priority=personal let s:f = g:XPTfuncs() XPTvar $blank ' ' -XPTvar $js_dir 'scripts' -XPTvar $css_dir 'styles' +XPTvar $js_dir 'javascripts' +XPTvar $css_dir 'stylesheets' XPTvar $jq_ver '1.4.2.min' XPTvar $empty '' @@ -55,7 +55,8 @@ XPT skel abbr synonym=html|xhtml " xhtml skeleton XPT link " +XSET media=screen + XPT alternate " -XPT reset synonym=fonts|base|grids|layout +XPT reset synonym=fonts|base|grids|layout|screen XSET name=$_xSnipName.css `:link( { 'src' : 'name' } ):^ +XPT print alias=link +XSET src=print.css +XSET media=print + XPT jquery abbr synonym=jq " `content^ + +XPT lie8 wrap=content " + +XPT lie9 wrap=content " diff --git a/ftplugin/ruby/ruby.xpt.vim b/ftplugin/ruby/ruby.xpt.vim index a8eacaa..baf465e 100644 --- a/ftplugin/ruby/ruby.xpt.vim +++ b/ftplugin/ruby/ruby.xpt.vim @@ -31,6 +31,9 @@ XSET bool=true`^ XPT :html alias=key XSET val={ `html^ } +XPT :media alias=key +XSET val='`screen^' + " RSpec snippets XPT loop " loop do .. end @@ -47,5 +50,4 @@ XSET name=it `:loop({ 'loop' : 'name' }):^ XPT :content " $_xSnipName => "val" -XSET val="`str^" `:key:^