From e573b3020c032400eed60b649a2cbf55266e6bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:03:25 +0200 Subject: Add current configurations from old repository --- vim/bundle/vim-snippets/UltiSnips/html.snippets | 306 ++++++++++++++++++++++++ 1 file changed, 306 insertions(+) create mode 100644 vim/bundle/vim-snippets/UltiSnips/html.snippets (limited to 'vim/bundle/vim-snippets/UltiSnips/html.snippets') diff --git a/vim/bundle/vim-snippets/UltiSnips/html.snippets b/vim/bundle/vim-snippets/UltiSnips/html.snippets new file mode 100644 index 0000000..fd1aca5 --- /dev/null +++ b/vim/bundle/vim-snippets/UltiSnips/html.snippets @@ -0,0 +1,306 @@ +priority -50 + +########################################################################### +# TextMate Snippets # +########################################################################### + +global !p +def x(snip): + if snip.ft.startswith("x"): + snip.rv = '/' + else: + snip.rv = "" +endglobal + +############ +# Doctypes # +############ +snippet doctype "DocType XHTML 1.0 Strict" b + + +endsnippet + +snippet doctype "DocType XHTML 1.0 Transitional" b + + +endsnippet + +snippet doctype "DocType XHTML 1.1" b + + +endsnippet + +snippet doctype "HTML - 4.0 Transitional (doctype)" b + + +endsnippet + +snippet doctype "HTML - 5.0 (doctype)" b + + +endsnippet + +############# +# Shortcuts # +############# +snippet down "Down (down)" +↓ +endsnippet + +snippet enter "Enter (enter)" +⌅ +endsnippet + +snippet escape "Escape (escape)" +⎋ +endsnippet + +snippet shift "Shift (shift)" +⇧ +endsnippet + +snippet tab "Tab (tab)" +⇥ +endsnippet + +snippet up "Up (up)" +↑ +endsnippet + +snippet return "Return (return)" +↩ +endsnippet + +snippet right "Right (right)" +→ +endsnippet + +snippet left "Left (left)" +← +endsnippet + +snippet option "Option (option)" +⌥ +endsnippet + +####################### +# Conditional inserts # +####################### +snippet ! "IE Conditional Comment: Internet Explorer 5_0 only" +$0 +endsnippet + +snippet ! "IE Conditional Comment: Internet Explorer 5_5 only" +$0 +endsnippet + +snippet ! "IE Conditional Comment: Internet Explorer 5_x" +$0 +endsnippet + +snippet ! "IE Conditional Comment: Internet Explorer 6 and below" +$0 +endsnippet + +snippet ! "IE Conditional Comment: Internet Explorer 6 only" +$0 +endsnippet + +snippet ! "IE Conditional Comment: Internet Explorer 7+" +$0 +endsnippet + +snippet ! "IE Conditional Comment: Internet Explorer" +$0 +endsnippet + +snippet ! "IE Conditional Comment: NOT Internet Explorer" +${1: IE Conditional Comment: NOT Internet Explorer }$0 +endsnippet + +############# +# HTML TAGS # +############# +snippet input "Input with Label" w + + +endsnippet + +snippet input "XHTML " w + +endsnippet + + +snippet opt "Option" w +${3:$2} +endsnippet + +snippet select "Select Box" w + +endsnippet + + +snippet textarea "XHTML +endsnippet + +snippet mailto "XHTML " w +${3:email me} +endsnippet + +snippet base "XHTML " w + +endsnippet + +snippet body "" + + $0 + +endsnippet + +snippet div "
" w +
+ $0 +
+endsnippet + +snippet div. "
with class" w + + $0 +
+endsnippet + +snippet div# "
with ID & class" w + + $0 +
+endsnippet + +snippet form "XHTML
" w + + $0 + +

+
+endsnippet + +snippet h1 "XHTML

" w +

$0

+endsnippet + +snippet h2 "XHTML

" w +

$0

+endsnippet + +snippet h3 "XHTML

" w +

$0

+endsnippet + +snippet h4 "XHTML

" w +

$0

+endsnippet + +snippet head "XHTML " + + + ${1:`!p snip.rv = snip.basename or "Page Title"`} + $0 + +endsnippet + +snippet link "XHTML " w + +endsnippet + +snippet meta "XHTML " w + +endsnippet + +snippet scriptsrc "XHTML +endsnippet + +snippet script "XHTML +endsnippet + +snippet style "XHTML +endsnippet + +snippet table "XHTML " w +
+ + +
${5:Header}
${0:Data}
+endsnippet + +snippet a "Link" w +${4:Anchor Text} +endsnippet + +snippet p "paragraph" w +

$0

+endsnippet + +snippet li "list item" w +
  • $0
  • +endsnippet + +snippet ul "unordered list" w +
      +$0 +
    +endsnippet + +snippet td "table cell" w +$0 +endsnippet + +snippet th "table header" w +$0 +endsnippet + +snippet tr "table row" w +$0 +endsnippet + +snippet title "XHTML " w +<title>${1:`!p snip.rv = snip.basename or "Page Title"`} +endsnippet + +snippet fieldset "Fieldset" w +
    + $1 + $0 +
    +endsnippet + +snippet movie "Embed QT movie (movie)" b + + + + + + +endsnippet +# vim:ft=snippets: -- cgit v1.2.3