Browse Source

Refactor html div snippets, add html5 footer tag

master
jimi 14 years ago
parent
commit
3f2e8126e4
  1. 10
      ftplugin/html/html.xpt.vim

10
ftplugin/html/html.xpt.vim

@ -91,13 +91,11 @@ XPT jscript synonym=js
`cursor^ `cursor^
</script> </script>
XPT di wrap=content " <div id="">.</div>
XSET val=Echo('')
XSET val|post=Echo(V()=~'\V\^ id=""\$\|val' ? '' : V())
XPT div wrap=content synonym=span " <$_xSnipName att?>..</$_xSnipName>
XSET content|ontype=html_cont_ontype() XSET content|ontype=html_cont_ontype()
<div` id="`val`"^>`content^^`content^html_cont_helper()^</div>
<`$_xSnipName^` `att?^>`content^^`content^html_cont_helper()^</`$_xSnipName^>
XPT div abbr wrap=cursor " <div id..>\n\n</div>\n<!-- id..
XPT di wrap=cursor " <div id..>\n\n</div>\n<!-- id..
XSET val=Echo('') XSET val=Echo('')
XSET val|post=Echo(V()=~'\V\^ id=""\$\|val' ? '' : V()) XSET val|post=Echo(V()=~'\V\^ id=""\$\|val' ? '' : V())
<div` id="`val`"^> <div` id="`val`"^>
@ -158,6 +156,8 @@ XPT section alias=blockTag
XPT aside alias=blockTag XPT aside alias=blockTag
XPT footer alias=blockTag
XPT nav " <nav class="... XPT nav " <nav class="...
<nav` `att?^> <nav` `att?^>
<ul> <ul>