${2:$1}${3}
+ ${2:$1}
snippet ${2}
+ ${1}
diff --git a/snippets/css.snippets b/snippets/css.snippets
index 72212d2..8886643 100644
--- a/snippets/css.snippets
+++ b/snippets/css.snippets
@@ -1,50 +1,50 @@
snippet .
${1} {
- ${2}
+ ${0}
}
snippet !
!important
snippet bdi:m+
- -moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};
+ -moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
snippet bdi:m
- -moz-border-image: ${1};
+ -moz-border-image: ${0};
snippet bdrz:m
- -moz-border-radius: ${1};
+ -moz-border-radius: ${0};
snippet bxsh:m+
- -moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
+ -moz-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
snippet bxsh:m
- -moz-box-shadow: ${1};
+ -moz-box-shadow: ${0};
snippet bdi:w+
- -webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};
+ -webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
snippet bdi:w
- -webkit-border-image: ${1};
+ -webkit-border-image: ${0};
snippet bdrz:w
- -webkit-border-radius: ${1};
+ -webkit-border-radius: ${0};
snippet bxsh:w+
- -webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
+ -webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
snippet bxsh:w
- -webkit-box-shadow: ${1};
+ -webkit-box-shadow: ${0};
snippet @f
@font-face {
font-family: ${1};
- src: url(${2});
+ src: url(${0});
}
snippet @i
- @import url(${1});
+ @import url(${0});
snippet @m
@media ${1:print} {
- ${2}
+ ${0}
}
snippet bg+
- background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};
+ background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${0:no-repeat};
snippet bga
- background-attachment: ${1};
+ background-attachment: ${0};
snippet bga:f
background-attachment: fixed;
snippet bga:s
background-attachment: scroll;
snippet bgbk
- background-break: ${1};
+ background-break: ${0};
snippet bgbk:bb
background-break: bounding-box;
snippet bgbk:c
@@ -52,7 +52,7 @@ snippet bgbk:c
snippet bgbk:eb
background-break: each-box;
snippet bgcp
- background-clip: ${1};
+ background-clip: ${0};
snippet bgcp:bb
background-clip: border-box;
snippet bgcp:cb
@@ -62,15 +62,15 @@ snippet bgcp:nc
snippet bgcp:pb
background-clip: padding-box;
snippet bgc
- background-color: #${1:FFF};
+ background-color: #${0:FFF};
snippet bgc:t
background-color: transparent;
snippet bgi
- background-image: url(${1});
+ background-image: url(${0});
snippet bgi:n
background-image: none;
snippet bgo
- background-origin: ${1};
+ background-origin: ${0};
snippet bgo:bb
background-origin: border-box;
snippet bgo:cb
@@ -78,13 +78,13 @@ snippet bgo:cb
snippet bgo:pb
background-origin: padding-box;
snippet bgpx
- background-position-x: ${1};
+ background-position-x: ${0};
snippet bgpy
- background-position-y: ${1};
+ background-position-y: ${0};
snippet bgp
- background-position: ${1:0} ${2:0};
+ background-position: ${1:0} ${0:0};
snippet bgr
- background-repeat: ${1};
+ background-repeat: ${0};
snippet bgr:n
background-repeat: no-repeat;
snippet bgr:x
@@ -94,7 +94,7 @@ snippet bgr:y
snippet bgr:r
background-repeat: repeat;
snippet bgz
- background-size: ${1};
+ background-size: ${0};
snippet bgz:a
background-size: auto;
snippet bgz:ct
@@ -102,67 +102,67 @@ snippet bgz:ct
snippet bgz:cv
background-size: cover;
snippet bg
- background: ${1};
+ background: ${0};
snippet bg:ie
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${0:crop}');
snippet bg:n
background: none;
snippet bd+
- border: ${1:1px} ${2:solid} #${3:000};
+ border: ${1:1px} ${2:solid} #${0:000};
snippet bdb+
- border-bottom: ${1:1px} ${2:solid} #${3:000};
+ border-bottom: ${1:1px} ${2:solid} #${0:000};
snippet bdbc
- border-bottom-color: #${1:000};
+ border-bottom-color: #${0:000};
snippet bdbi
- border-bottom-image: url(${1});
+ border-bottom-image: url(${0});
snippet bdbi:n
border-bottom-image: none;
snippet bdbli
- border-bottom-left-image: url(${1});
+ border-bottom-left-image: url(${0});
snippet bdbli:c
border-bottom-left-image: continue;
snippet bdbli:n
border-bottom-left-image: none;
snippet bdblrz
- border-bottom-left-radius: ${1};
+ border-bottom-left-radius: ${0};
snippet bdbri
- border-bottom-right-image: url(${1});
+ border-bottom-right-image: url(${0});
snippet bdbri:c
border-bottom-right-image: continue;
snippet bdbri:n
border-bottom-right-image: none;
snippet bdbrrz
- border-bottom-right-radius: ${1};
+ border-bottom-right-radius: ${0};
snippet bdbs
- border-bottom-style: ${1};
+ border-bottom-style: ${0};
snippet bdbs:n
border-bottom-style: none;
snippet bdbw
- border-bottom-width: ${1};
+ border-bottom-width: ${0};
snippet bdb
- border-bottom: ${1};
+ border-bottom: ${0};
snippet bdb:n
border-bottom: none;
snippet bdbk
- border-break: ${1};
+ border-break: ${0};
snippet bdbk:c
border-break: close;
snippet bdcl
- border-collapse: ${1};
+ border-collapse: ${0};
snippet bdcl:c
border-collapse: collapse;
snippet bdcl:s
border-collapse: separate;
snippet bdc
- border-color: #${1:000};
+ border-color: #${0:000};
snippet bdci
- border-corner-image: url(${1});
+ border-corner-image: url(${0});
snippet bdci:c
border-corner-image: continue;
snippet bdci:n
border-corner-image: none;
snippet bdf
- border-fit: ${1};
+ border-fit: ${0};
snippet bdf:c
border-fit: clip;
snippet bdf:of
@@ -178,55 +178,55 @@ snippet bdf:sp
snippet bdf:st
border-fit: stretch;
snippet bdi
- border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};
+ border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${0:stretch};
snippet bdi:n
border-image: none;
snippet bdl+
- border-left: ${1:1px} ${2:solid} #${3:000};
+ border-left: ${1:1px} ${2:solid} #${0:000};
snippet bdlc
- border-left-color: #${1:000};
+ border-left-color: #${0:000};
snippet bdli
- border-left-image: url(${1});
+ border-left-image: url(${0});
snippet bdli:n
border-left-image: none;
snippet bdls
- border-left-style: ${1};
+ border-left-style: ${0};
snippet bdls:n
border-left-style: none;
snippet bdlw
- border-left-width: ${1};
+ border-left-width: ${0};
snippet bdl
- border-left: ${1};
+ border-left: ${0};
snippet bdl:n
border-left: none;
snippet bdlt
- border-length: ${1};
+ border-length: ${0};
snippet bdlt:a
border-length: auto;
snippet bdrz
- border-radius: ${1};
+ border-radius: ${0};
snippet bdr+
- border-right: ${1:1px} ${2:solid} #${3:000};
+ border-right: ${1:1px} ${2:solid} #${0:000};
snippet bdrc
- border-right-color: #${1:000};
+ border-right-color: #${0:000};
snippet bdri
- border-right-image: url(${1});
+ border-right-image: url(${0});
snippet bdri:n
border-right-image: none;
snippet bdrs
- border-right-style: ${1};
+ border-right-style: ${0};
snippet bdrs:n
border-right-style: none;
snippet bdrw
- border-right-width: ${1};
+ border-right-width: ${0};
snippet bdr
- border-right: ${1};
+ border-right: ${0};
snippet bdr:n
border-right: none;
snippet bdsp
- border-spacing: ${1};
+ border-spacing: ${0};
snippet bds
- border-style: ${1};
+ border-style: ${0};
snippet bds:ds
border-style: dashed;
snippet bds:dtds
@@ -254,69 +254,69 @@ snippet bds:s
snippet bds:w
border-style: wave;
snippet bdt+
- border-top: ${1:1px} ${2:solid} #${3:000};
+ border-top: ${1:1px} ${2:solid} #${0:000};
snippet bdtc
- border-top-color: #${1:000};
+ border-top-color: #${0:000};
snippet bdti
- border-top-image: url(${1});
+ border-top-image: url(${0});
snippet bdti:n
border-top-image: none;
snippet bdtli
- border-top-left-image: url(${1});
+ border-top-left-image: url(${0});
snippet bdtli:c
border-corner-image: continue;
snippet bdtli:n
border-corner-image: none;
snippet bdtlrz
- border-top-left-radius: ${1};
+ border-top-left-radius: ${0};
snippet bdtri
- border-top-right-image: url(${1});
+ border-top-right-image: url(${0});
snippet bdtri:c
border-top-right-image: continue;
snippet bdtri:n
border-top-right-image: none;
snippet bdtrrz
- border-top-right-radius: ${1};
+ border-top-right-radius: ${0};
snippet bdts
- border-top-style: ${1};
+ border-top-style: ${0};
snippet bdts:n
border-top-style: none;
snippet bdtw
- border-top-width: ${1};
+ border-top-width: ${0};
snippet bdt
- border-top: ${1};
+ border-top: ${0};
snippet bdt:n
border-top: none;
snippet bdw
- border-width: ${1};
+ border-width: ${0};
snippet bd
- border: ${1};
+ border: ${0};
snippet bd:n
border: none;
snippet b
- bottom: ${1};
+ bottom: ${0};
snippet b:a
bottom: auto;
snippet bxsh+
- box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
+ box-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
snippet bxsh
- box-shadow: ${1};
+ box-shadow: ${0};
snippet bxsh:n
box-shadow: none;
snippet bxz
- box-sizing: ${1};
+ box-sizing: ${0};
snippet bxz:bb
box-sizing: border-box;
snippet bxz:cb
box-sizing: content-box;
snippet cps
- caption-side: ${1};
+ caption-side: ${0};
snippet cps:b
caption-side: bottom;
snippet cps:t
caption-side: top;
snippet cl
- clear: ${1};
+ clear: ${0};
snippet cl:b
clear: both;
snippet cl:l
@@ -326,23 +326,23 @@ snippet cl:n
snippet cl:r
clear: right;
snippet cp
- clip: ${1};
+ clip: ${0};
snippet cp:a
clip: auto;
snippet cp:r
- clip: rect(${1:0} ${2:0} ${3:0} ${4:0});
+ clip: rect(${1:0} ${2:0} ${3:0} ${0:0});
snippet c
- color: #${1:000};
+ color: #${0:000};
snippet ct
- content: ${1};
+ content: ${0};
snippet ct:a
- content: attr(${1});
+ content: attr(${0});
snippet ct:cq
content: close-quote;
snippet ct:c
- content: counter(${1});
+ content: counter(${0});
snippet ct:cs
- content: counters(${1});
+ content: counters(${0});
snippet ct:ncq
content: no-close-quote;
snippet ct:noq
@@ -352,11 +352,11 @@ snippet ct:n
snippet ct:oq
content: open-quote;
snippet coi
- counter-increment: ${1};
+ counter-increment: ${0};
snippet cor
- counter-reset: ${1};
+ counter-reset: ${0};
snippet cur
- cursor: ${1};
+ cursor: ${0};
snippet cur:a
cursor: auto;
snippet cur:c
@@ -374,7 +374,7 @@ snippet cur:p
snippet cur:t
cursor: text;
snippet d
- display: ${1};
+ display: ${0};
snippet d:mib
display: -moz-inline-box;
snippet d:mis
@@ -414,7 +414,7 @@ snippet d:tbr
snippet d:tb
display: table;
snippet ec
- empty-cells: ${1};
+ empty-cells: ${0};
snippet ec:h
empty-cells: hide;
snippet ec:s
@@ -422,7 +422,7 @@ snippet ec:s
snippet exp
expression()
snippet fl
- float: ${1};
+ float: ${0};
snippet fl:l
float: left;
snippet fl:n
@@ -430,9 +430,9 @@ snippet fl:n
snippet fl:r
float: right;
snippet f+
- font: ${1:1em} ${2:Arial},${3:sans-serif};
+ font: ${1:1em} ${2:Arial},${0:sans-serif};
snippet fef
- font-effect: ${1};
+ font-effect: ${0};
snippet fef:eb
font-effect: emboss;
snippet fef:eg
@@ -442,13 +442,13 @@ snippet fef:n
snippet fef:o
font-effect: outline;
snippet femp
- font-emphasize-position: ${1};
+ font-emphasize-position: ${0};
snippet femp:a
font-emphasize-position: after;
snippet femp:b
font-emphasize-position: before;
snippet fems
- font-emphasize-style: ${1};
+ font-emphasize-style: ${0};
snippet fems:ac
font-emphasize-style: accent;
snippet fems:c
@@ -460,27 +460,27 @@ snippet fems:dt
snippet fems:n
font-emphasize-style: none;
snippet fem
- font-emphasize: ${1};
+ font-emphasize: ${0};
snippet ff
- font-family: ${1};
+ font-family: ${0};
snippet ff:c
- font-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;
+ font-family: ${0:'Monotype Corsiva','Comic Sans MS'},cursive;
snippet ff:f
- font-family: ${1:Capitals,Impact},fantasy;
+ font-family: ${0:Capitals,Impact},fantasy;
snippet ff:m
- font-family: ${1:Monaco,'Courier New'},monospace;
+ font-family: ${0:Monaco,'Courier New'},monospace;
snippet ff:ss
- font-family: ${1:Helvetica,Arial},sans-serif;
+ font-family: ${0:Helvetica,Arial},sans-serif;
snippet ff:s
- font-family: ${1:Georgia,'Times New Roman'},serif;
+ font-family: ${0:Georgia,'Times New Roman'},serif;
snippet fza
- font-size-adjust: ${1};
+ font-size-adjust: ${0};
snippet fza:n
font-size-adjust: none;
snippet fz
- font-size: ${1};
+ font-size: ${0};
snippet fsm
- font-smooth: ${1};
+ font-smooth: ${0};
snippet fsm:aw
font-smooth: always;
snippet fsm:a
@@ -488,7 +488,7 @@ snippet fsm:a
snippet fsm:n
font-smooth: never;
snippet fst
- font-stretch: ${1};
+ font-stretch: ${0};
snippet fst:c
font-stretch: condensed;
snippet fst:e
@@ -508,7 +508,7 @@ snippet fst:uc
snippet fst:ue
font-stretch: ultra-expanded;
snippet fs
- font-style: ${1};
+ font-style: ${0};
snippet fs:i
font-style: italic;
snippet fs:n
@@ -516,13 +516,13 @@ snippet fs:n
snippet fs:o
font-style: oblique;
snippet fv
- font-variant: ${1};
+ font-variant: ${0};
snippet fv:n
font-variant: normal;
snippet fv:sc
font-variant: small-caps;
snippet fw
- font-weight: ${1};
+ font-weight: ${0};
snippet fw:b
font-weight: bold;
snippet fw:br
@@ -532,31 +532,31 @@ snippet fw:lr
snippet fw:n
font-weight: normal;
snippet f
- font: ${1};
+ font: ${0};
snippet h
- height: ${1};
+ height: ${0};
snippet h:a
height: auto;
snippet l
- left: ${1};
+ left: ${0};
snippet l:a
left: auto;
snippet lts
- letter-spacing: ${1};
+ letter-spacing: ${0};
snippet lh
- line-height: ${1};
+ line-height: ${0};
snippet lisi
- list-style-image: url(${1});
+ list-style-image: url(${0});
snippet lisi:n
list-style-image: none;
snippet lisp
- list-style-position: ${1};
+ list-style-position: ${0};
snippet lisp:i
list-style-position: inside;
snippet lisp:o
list-style-position: outside;
snippet list
- list-style-type: ${1};
+ list-style-type: ${0};
snippet list:c
list-style-type: circle;
snippet list:dclz
@@ -574,75 +574,75 @@ snippet list:s
snippet list:ur
list-style-type: upper-roman;
snippet lis
- list-style: ${1};
+ list-style: ${0};
snippet lis:n
list-style: none;
snippet mb
- margin-bottom: ${1};
+ margin-bottom: ${0};
snippet mb:a
margin-bottom: auto;
snippet ml
- margin-left: ${1};
+ margin-left: ${0};
snippet ml:a
margin-left: auto;
snippet mr
- margin-right: ${1};
+ margin-right: ${0};
snippet mr:a
margin-right: auto;
snippet mt
- margin-top: ${1};
+ margin-top: ${0};
snippet mt:a
margin-top: auto;
snippet m
- margin: ${1};
+ margin: ${0};
snippet m:4
- margin: ${1:0} ${2:0} ${3:0} ${4:0};
+ margin: ${1:0} ${2:0} ${3:0} ${0:0};
snippet m:3
- margin: ${1:0} ${2:0} ${3:0};
+ margin: ${1:0} ${2:0} ${0:0};
snippet m:2
- margin: ${1:0} ${2:0};
+ margin: ${1:0} ${0:0};
snippet m:0
margin: 0;
snippet m:a
margin: auto;
snippet mah
- max-height: ${1};
+ max-height: ${0};
snippet mah:n
max-height: none;
snippet maw
- max-width: ${1};
+ max-width: ${0};
snippet maw:n
max-width: none;
snippet mih
- min-height: ${1};
+ min-height: ${0};
snippet miw
- min-width: ${1};
+ min-width: ${0};
snippet op
- opacity: ${1};
+ opacity: ${0};
snippet op:ie
- filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});
+ filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100});
snippet op:ms
- -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';
+ -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${0:100})';
snippet orp
- orphans: ${1};
+ orphans: ${0};
snippet o+
- outline: ${1:1px} ${2:solid} #${3:000};
+ outline: ${1:1px} ${2:solid} #${0:000};
snippet oc
- outline-color: ${1:#000};
+ outline-color: ${0:#000};
snippet oc:i
outline-color: invert;
snippet oo
- outline-offset: ${1};
+ outline-offset: ${0};
snippet os
- outline-style: ${1};
+ outline-style: ${0};
snippet ow
- outline-width: ${1};
+ outline-width: ${0};
snippet o
- outline: ${1};
+ outline: ${0};
snippet o:n
outline: none;
snippet ovs
- overflow-style: ${1};
+ overflow-style: ${0};
snippet ovs:a
overflow-style: auto;
snippet ovs:mq
@@ -654,7 +654,7 @@ snippet ovs:p
snippet ovs:s
overflow-style: scrollbar;
snippet ovx
- overflow-x: ${1};
+ overflow-x: ${0};
snippet ovx:a
overflow-x: auto;
snippet ovx:h
@@ -664,7 +664,7 @@ snippet ovx:s
snippet ovx:v
overflow-x: visible;
snippet ovy
- overflow-y: ${1};
+ overflow-y: ${0};
snippet ovy:a
overflow-y: auto;
snippet ovy:h
@@ -674,7 +674,7 @@ snippet ovy:s
snippet ovy:v
overflow-y: visible;
snippet ov
- overflow: ${1};
+ overflow: ${0};
snippet ov:a
overflow: auto;
snippet ov:h
@@ -684,25 +684,25 @@ snippet ov:s
snippet ov:v
overflow: visible;
snippet pb
- padding-bottom: ${1};
+ padding-bottom: ${0};
snippet pl
- padding-left: ${1};
+ padding-left: ${0};
snippet pr
- padding-right: ${1};
+ padding-right: ${0};
snippet pt
- padding-top: ${1};
+ padding-top: ${0};
snippet p
- padding: ${1};
+ padding: ${0};
snippet p:4
- padding: ${1:0} ${2:0} ${3:0} ${4:0};
+ padding: ${1:0} ${2:0} ${3:0} ${0:0};
snippet p:3
- padding: ${1:0} ${2:0} ${3:0};
+ padding: ${1:0} ${2:0} ${0:0};
snippet p:2
- padding: ${1:0} ${2:0};
+ padding: ${1:0} ${0:0};
snippet p:0
padding: 0;
snippet pgba
- page-break-after: ${1};
+ page-break-after: ${0};
snippet pgba:aw
page-break-after: always;
snippet pgba:a
@@ -712,7 +712,7 @@ snippet pgba:l
snippet pgba:r
page-break-after: right;
snippet pgbb
- page-break-before: ${1};
+ page-break-before: ${0};
snippet pgbb:aw
page-break-before: always;
snippet pgbb:a
@@ -722,13 +722,13 @@ snippet pgbb:l
snippet pgbb:r
page-break-before: right;
snippet pgbi
- page-break-inside: ${1};
+ page-break-inside: ${0};
snippet pgbi:a
page-break-inside: auto;
snippet pgbi:av
page-break-inside: avoid;
snippet pos
- position: ${1};
+ position: ${0};
snippet pos:a
position: absolute;
snippet pos:f
@@ -738,7 +738,7 @@ snippet pos:r
snippet pos:s
position: static;
snippet q
- quotes: ${1};
+ quotes: ${0};
snippet q:en
quotes: '\201C' '\201D' '\2018' '\2019';
snippet q:n
@@ -746,7 +746,7 @@ snippet q:n
snippet q:ru
quotes: '\00AB' '\00BB' '\201E' '\201C';
snippet rz
- resize: ${1};
+ resize: ${0};
snippet rz:b
resize: both;
snippet rz:h
@@ -756,17 +756,17 @@ snippet rz:n
snippet rz:v
resize: vertical;
snippet r
- right: ${1};
+ right: ${0};
snippet r:a
right: auto;
snippet tbl
- table-layout: ${1};
+ table-layout: ${0};
snippet tbl:a
table-layout: auto;
snippet tbl:f
table-layout: fixed;
snippet tal
- text-align-last: ${1};
+ text-align-last: ${0};
snippet tal:a
text-align-last: auto;
snippet tal:c
@@ -776,7 +776,7 @@ snippet tal:l
snippet tal:r
text-align-last: right;
snippet ta
- text-align: ${1};
+ text-align: ${0};
snippet ta:c
text-align: center;
snippet ta:l
@@ -784,7 +784,7 @@ snippet ta:l
snippet ta:r
text-align: right;
snippet td
- text-decoration: ${1};
+ text-decoration: ${0};
snippet td:l
text-decoration: line-through;
snippet td:n
@@ -794,7 +794,7 @@ snippet td:o
snippet td:u
text-decoration: underline;
snippet te
- text-emphasis: ${1};
+ text-emphasis: ${0};
snippet te:ac
text-emphasis: accent;
snippet te:a
@@ -810,7 +810,7 @@ snippet te:dt
snippet te:n
text-emphasis: none;
snippet th
- text-height: ${1};
+ text-height: ${0};
snippet th:a
text-height: auto;
snippet th:f
@@ -820,11 +820,11 @@ snippet th:m
snippet th:t
text-height: text-size;
snippet ti
- text-indent: ${1};
+ text-indent: ${0};
snippet ti:-
text-indent: -9999px;
snippet tj
- text-justify: ${1};
+ text-justify: ${0};
snippet tj:a
text-justify: auto;
snippet tj:d
@@ -840,23 +840,23 @@ snippet tj:k
snippet tj:t
text-justify: tibetan;
snippet to+
- text-outline: ${1:0} ${2:0} #${3:000};
+ text-outline: ${1:0} ${2:0} #${0:000};
snippet to
- text-outline: ${1};
+ text-outline: ${0};
snippet to:n
text-outline: none;
snippet tr
- text-replace: ${1};
+ text-replace: ${0};
snippet tr:n
text-replace: none;
snippet tsh+
- text-shadow: ${1:0} ${2:0} ${3:0} #${4:000};
+ text-shadow: ${1:0} ${2:0} ${3:0} #${0:000};
snippet tsh
- text-shadow: ${1};
+ text-shadow: ${0};
snippet tsh:n
text-shadow: none;
snippet tt
- text-transform: ${1};
+ text-transform: ${0};
snippet tt:c
text-transform: capitalize;
snippet tt:l
@@ -866,7 +866,7 @@ snippet tt:n
snippet tt:u
text-transform: uppercase;
snippet tw
- text-wrap: ${1};
+ text-wrap: ${0};
snippet tw:no
text-wrap: none;
snippet tw:n
@@ -876,11 +876,11 @@ snippet tw:s
snippet tw:u
text-wrap: unrestricted;
snippet t
- top: ${1};
+ top: ${0};
snippet t:a
top: auto;
snippet va
- vertical-align: ${1};
+ vertical-align: ${0};
snippet va:bl
vertical-align: baseline;
snippet va:b
@@ -898,7 +898,7 @@ snippet va:tt
snippet va:t
vertical-align: top;
snippet v
- visibility: ${1};
+ visibility: ${0};
snippet v:c
visibility: collapse;
snippet v:h
@@ -906,7 +906,7 @@ snippet v:h
snippet v:v
visibility: visible;
snippet whsc
- white-space-collapse: ${1};
+ white-space-collapse: ${0};
snippet whsc:ba
white-space-collapse: break-all;
snippet whsc:bs
@@ -918,7 +918,7 @@ snippet whsc:l
snippet whsc:n
white-space-collapse: normal;
snippet whs
- white-space: ${1};
+ white-space: ${0};
snippet whs:n
white-space: normal;
snippet whs:nw
@@ -930,13 +930,13 @@ snippet whs:pw
snippet whs:p
white-space: pre;
snippet wid
- widows: ${1};
+ widows: ${0};
snippet w
- width: ${1};
+ width: ${0};
snippet w:a
width: auto;
snippet wob
- word-break: ${1};
+ word-break: ${0};
snippet wob:ba
word-break: break-all;
snippet wob:bs
@@ -948,9 +948,9 @@ snippet wob:l
snippet wob:n
word-break: normal;
snippet wos
- word-spacing: ${1};
+ word-spacing: ${0};
snippet wow
- word-wrap: ${1};
+ word-wrap: ${0};
snippet wow:no
word-wrap: none;
snippet wow:n
@@ -960,7 +960,7 @@ snippet wow:s
snippet wow:u
word-wrap: unrestricted;
snippet z
- z-index: ${1};
+ z-index: ${0};
snippet z:a
z-index: auto;
snippet zoo
diff --git a/snippets/dart.snippets b/snippets/dart.snippets
index a745200..0093f2b 100644
--- a/snippets/dart.snippets
+++ b/snippets/dart.snippets
@@ -1,82 +1,82 @@
snippet lib
#library('${1}');
- ${2}
+ ${0}
snippet im
#import('${1}');
- ${2}
+ ${0}
snippet so
#source('${1}');
- ${2}
+ ${0}
snippet main
static void main() {
- ${1}
+ ${0}
}
snippet st
- static ${1}
+ static ${0}
snippet fi
- final ${1}
+ final ${0}
snippet re
- return ${1}
+ return ${0}
snippet br
break;
snippet th
- throw ${1}
+ throw ${0}
snippet cl
- class ${1:`vim_snippets#Filename("", "untitled")`} ${2}
+ class ${1:`vim_snippets#Filename("", "untitled")`} ${0}
snippet in
- interface ${1:`vim_snippets#Filename("", "untitled")`} ${2}
+ interface ${1:`vim_snippets#Filename("", "untitled")`} ${0}
snippet imp
- implements ${1}
+ implements ${0}
snippet ext
- extends ${1}
+ extends ${0}
snippet if
if (${1:true}) {
- ${2}
+ ${0}
}
snippet ife
if (${1:true}) {
${2}
} else {
- ${3}
+ ${0}
}
snippet el
else
snippet sw
switch (${1}) {
- ${2}
+ ${0}
}
snippet cs
case ${1}:
- ${2}
+ ${0}
snippet de
default:
- ${1}
+ ${0}
snippet for
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {
- ${4:$1[$2]}
+ ${0:$1[$2]}
}
snippet fore
for (final ${2:item} in ${1:itemList}) {
- ${3}
+ ${0}
}
snippet wh
while (${1:/* condition */}) {
- ${2}
+ ${0}
}
snippet dowh
do {
- ${2}
- } while (${1:/* condition */});
+ ${0}
+ } while (${0:/* condition */});
snippet as
- assert(${1:/* condition */});
+ assert(${0:/* condition */});
snippet try
try {
- ${2}
+ ${0}
} catch (${1:Exception e}) {
}
snippet tryf
try {
- ${2}
+ ${0}
} catch (${1:Exception e}) {
} finally {
}
diff --git a/snippets/diff.snippets b/snippets/diff.snippets
index 7ba288d..89bc31d 100644
--- a/snippets/diff.snippets
+++ b/snippets/diff.snippets
@@ -7,5 +7,5 @@ snippet header DEP-3 style header
Author: ${6:`g:snips_author`}
Reviewed-by: ${7:name and email}
Last-Update: ${8:`strftime("%Y-%m-%d")`}
- Applied-Upstream: ${9:upstream version|url|commit}
+ Applied-Upstream: ${0:upstream version|url|commit}
diff --git a/snippets/django.snippets b/snippets/django.snippets
index 5c72b2b..cad80eb 100644
--- a/snippets/django.snippets
+++ b/snippets/django.snippets
@@ -9,65 +9,65 @@
# can either not specify them, or override them, e.g. auto_now_add=False.
snippet auto
- ${1:FIELDNAME} = models.AutoField(${2})
+ ${1:FIELDNAME} = models.AutoField(${0})
snippet bool
- ${1:FIELDNAME} = models.BooleanField(${2:default=True})
+ ${1:FIELDNAME} = models.BooleanField(${0:default=True})
snippet char
- ${1:FIELDNAME} = models.CharField(max_length=${2}${3:, blank=True})
+ ${1:FIELDNAME} = models.CharField(max_length=${2}${0:, blank=True})
snippet comma
- ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${3:, blank=True})
+ ${1:FIELDNAME} = models.CommaSeparatedIntegerField(max_length=${2}${0:, blank=True})
snippet date
- ${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})
+ ${1:FIELDNAME} = models.DateField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
snippet datetime
- ${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})
+ ${1:FIELDNAME} = models.DateTimeField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
snippet decimal
- ${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${3})
+ ${1:FIELDNAME} = models.DecimalField(max_digits=${2}, decimal_places=${0})
snippet email
- ${1:FIELDNAME} = models.EmailField(max_length=${2:75}${3:, blank=True})
+ ${1:FIELDNAME} = models.EmailField(max_length=${2:75}${0:, blank=True})
snippet file
- ${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${3:, max_length=100})
+ ${1:FIELDNAME} = models.FileField(upload_to=${2:path/for/upload}${0:, max_length=100})
snippet filepath
- ${1:FIELDNAME} = models.FilePathField(path=${2:"/abs/path/to/dir"}${3:, max_length=100}${4:, match="*.ext"}${5:, recursive=True}${6:, blank=True, })
+ ${1:FIELDNAME} = models.FilePathField(path=${2:"/abs/path/to/dir"}${3:, max_length=100}${4:, match="*.ext"}${5:, recursive=True}${0:, blank=True, })
snippet float
- ${1:FIELDNAME} = models.FloatField(${2})
+ ${1:FIELDNAME} = models.FloatField(${0})
snippet image
- ${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100})
+ ${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${0:, max_length=100})
snippet int
- ${1:FIELDNAME} = models.IntegerField(${2})
+ ${1:FIELDNAME} = models.IntegerField(${0})
snippet ip
- ${1:FIELDNAME} = models.IPAddressField(${2})
+ ${1:FIELDNAME} = models.IPAddressField(${0})
snippet nullbool
- ${1:FIELDNAME} = models.NullBooleanField(${2})
+ ${1:FIELDNAME} = models.NullBooleanField(${0})
snippet posint
- ${1:FIELDNAME} = models.PositiveIntegerField(${2})
+ ${1:FIELDNAME} = models.PositiveIntegerField(${0})
snippet possmallint
- ${1:FIELDNAME} = models.PositiveSmallIntegerField(${2})
+ ${1:FIELDNAME} = models.PositiveSmallIntegerField(${0})
snippet slug
- ${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True})
+ ${1:FIELDNAME} = models.SlugField(max_length=${2:50}${0:, blank=True})
snippet smallint
- ${1:FIELDNAME} = models.SmallIntegerField(${2})
+ ${1:FIELDNAME} = models.SmallIntegerField(${0})
snippet text
- ${1:FIELDNAME} = models.TextField(${2:blank=True})
+ ${1:FIELDNAME} = models.TextField(${0:blank=True})
snippet time
- ${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${3:, blank=True, null=True})
+ ${1:FIELDNAME} = models.TimeField(${2:auto_now_add=True, auto_now=True}${0:, blank=True, null=True})
snippet url
- ${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${4:, blank=True})
+ ${1:FIELDNAME} = models.URLField(${2:verify_exists=False}${3:, max_length=200}${0:, blank=True})
snippet xml
- ${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${3:, blank=True})
+ ${1:FIELDNAME} = models.XMLField(schema_path=${2:None}${0:, blank=True})
# Relational Fields
snippet fk
- ${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, to_field=''})
+ ${1:FIELDNAME} = models.ForeignKey(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${0:, to_field=''})
snippet m2m
- ${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${7:, db_table=''})
+ ${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel}${3:, related_name=''}${4:, limit_choices_to=}${5:, symmetrical=False}${6:, through=''}${0:, db_table=''})
snippet o2o
- ${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})
+ ${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${0:, to_field=''})
# Code Skeletons
snippet form
class ${1:FormName}(forms.Form):
"""${2:docstring}"""
- ${3}
+ ${0}
snippet model
class ${1:ModelName}(models.Model):
@@ -85,24 +85,24 @@ snippet model
@models.permalink
def get_absolute_url(self):
- return ('${7:view_or_url_name}' ${8})
+ return ('${7:view_or_url_name}' ${0})
snippet modeladmin
class ${1:ModelName}Admin(admin.ModelAdmin):
- ${2}
+ ${0}
admin.site.register($1, $1Admin)
snippet tabularinline
- class ${1:ModelName}Inline(admin.TabularInline):
+ class ${0:ModelName}Inline(admin.TabularInline):
model = $1
snippet stackedinline
- class ${1:ModelName}Inline(admin.StackedInline):
+ class ${0:ModelName}Inline(admin.StackedInline):
model = $1
snippet r2r
return render_to_response('${1:template.html}', {
${2}
- }${3:, context_instance=RequestContext(request)}
+ }${0:, context_instance=RequestContext(request)}
)
diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets
index eb3319e..54aa180 100644
--- a/snippets/elixir.snippets
+++ b/snippets/elixir.snippets
@@ -1,127 +1,127 @@
snippet do
do
- ${1}
+ ${0}
end
snippet if if .. do .. end
if ${1} do
- ${2}
+ ${0}
end
snippet if if .. do: ..
- if ${1:condition}, do: ${2}
+ if ${1:condition}, do: ${0}
snippet ife if .. do .. else .. end
if ${1:condition} do
${2}
else
- ${3}
+ ${0}
end
snippet ife if .. do: .. else:
- if ${1:condition}, do: ${2}, else: ${3}
+ if ${1:condition}, do: ${2}, else: ${0}
snippet unless unless .. do .. end
unless ${1} do
- ${2}
+ ${0}
end
snippet unless unless .. do: ..
- unless ${1:condition}, do: ${2}
+ unless ${1:condition}, do: ${0}
snippet unlesse unless .. do .. else .. end
unless ${1:condition} do
${2}
else
- ${3}
+ ${0}
end
snippet unlesse unless .. do: .. else:
- unless ${1:condition}, do: ${2}, else: ${3}
+ unless ${1:condition}, do: ${2}, else: ${0}
snippet cond
cond do
${1} ->
- ${2}
+ ${0}
end
snippet case
case ${1} do
${2} ->
- ${3}
+ ${0}
end
snippet def
def ${1:name} do
- ${2}
+ ${0}
end
snippet defim
defimpl ${1:protocol_name}, for: ${2:data_type} do
- ${3}
+ ${0}
end
snippet defma
defmacro ${1:name} do
- ${2}
+ ${0}
end
snippet defmo
defmodule ${1:module_name} do
- ${2}
+ ${0}
end
snippet defp
defp ${1:name} do
- ${2}
+ ${0}
end
snippet defpr
- defprotocol ${1:name}, [${2:function}]
+ defprotocol ${1:name}, [${0:function}]
snippet defr
- defrecord ${1:record_name}, ${2:fields}
+ defrecord ${1:record_name}, ${0:fields}
snippet doc
@doc """
- ${1}
+ ${0}
"""
snippet fn
- fn(${1:args}) -> ${2} end
+ fn(${1:args}) -> ${0} end
snippet fun
function do
- ${1}
+ ${0}
end
snippet mdoc
@moduledoc """
- ${1}
+ ${0}
"""
snippet rec
receive do
${1} ->
- ${2}
+ ${0}
end
snippet req
- require ${1:module_name}
+ require ${0:module_name}
snippet imp
- import ${1:module_name}
+ import ${0:module_name}
snippet ali
- alias ${1:module_name}
+ alias ${0:module_name}
snippet test
test "${1:test_name}" do
- ${2}
+ ${0}
end
snippet try try .. rescue .. end
try do
${1}
rescue
- ${2} -> ${3}
+ ${2} -> ${0}
end
diff --git a/snippets/erlang.snippets b/snippets/erlang.snippets
index cfad09a..799d7f5 100644
--- a/snippets/erlang.snippets
+++ b/snippets/erlang.snippets
@@ -5,62 +5,62 @@ snippet mod
-compile([export_all]).
start() ->
- ${2}
+ ${0}
stop() ->
ok.
# define directive
snippet def
- -define(${1:macro}, ${2:body}).${3}
+ -define(${1:macro}, ${2:body}).
# export directive
snippet exp
- -export([${1:function}/${2:arity}]).
+ -export([${1:function}/${0:arity}]).
# include directive
snippet inc
- -include("${1:file}").${2}
+ -include("${1:file}").
# behavior directive
snippet beh
- -behaviour(${1:behaviour}).${2}
+ -behaviour(${1:behaviour}).
# if expression
snippet if
if
${1:guard} ->
- ${2:body}
+ ${0:body}
end
# case expression
snippet case
case ${1:expression} of
${2:pattern} ->
- ${3:body};
+ ${0:body};
end
# anonymous function
snippet fun
- fun (${1:Parameters}) -> ${2:body} end${3}
+ fun (${1:Parameters}) -> ${2:body} end
# try...catch
snippet try
try
${1}
catch
- ${2:_:_} -> ${3:got_some_exception}
+ ${2:_:_} -> ${0:got_some_exception}
end
# record directive
snippet rec
-record(${1:record}, {
- ${2:field}=${3:value}}).${4}
+ ${2:field}=${3:value}}).
# todo comment
snippet todo
- %% TODO: ${1}
+ %% TODO: ${0}
## Snippets below (starting with '%') are in EDoc format.
## See http://www.erlang.org/doc/apps/edoc/chapter.html#id56887 for more details
# doc comment
snippet %d
- %% @doc ${1}
+ %% @doc ${0}
# end of doc comment
snippet %e
%% @end
# specification comment
snippet %s
- %% @spec ${1}
+ %% @spec ${0}
# private function marker
snippet %p
%% @private
@@ -73,7 +73,7 @@ snippet application
-export([start/2, stop/1]).
start(_Type, _StartArgs) ->
- case ${2:root_supervisor}:start_link() of
+ case ${0:root_supervisor}:start_link() of
{ok, Pid} ->
{ok, Pid};
Other ->
@@ -100,14 +100,14 @@ snippet supervisor
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
init([]) ->
- Server = {${2:my_server}, {$2, start_link, []},
+ Server = {${0:my_server}, {$2, start_link, []},
permanent, 2000, worker, [$2]},
Children = [Server],
RestartStrategy = {one_for_one, 0, 1},
{ok, {RestartStrategy, Children}}.
# OTP gen_server
snippet gen_server
- -module(${1:`vim_snippets#Filename('', 'my')`}).
+ -module(${0:`vim_snippets#Filename('', 'my')`}).
-behaviour(gen_server).
@@ -159,7 +159,7 @@ snippet gen_server
%%%===================================================================
# common_test test_SUITE
snippet testsuite
- -module(${1:`vim_snippets#Filename('', 'my')`}).
+ -module(${0:`vim_snippets#Filename('', 'my')`}).
-include_lib("common_test/include/ct.hrl").
diff --git a/snippets/eruby.snippets b/snippets/eruby.snippets
index e3f4213..9541835 100644
--- a/snippets/eruby.snippets
+++ b/snippets/eruby.snippets
@@ -4,124 +4,124 @@
# Rails *****************************
snippet rc
- <% ${1} %>
+ <% ${0} %>
snippet rce
- <%= ${1} %>${2}
+ <%= ${1} %>
snippet %
- <% ${1} %>
+ <% ${0} %>
snippet =
- <%= ${1} %>${2}
+ <%= ${1} %>
snippet end
- <% end %>${1}
+ <% end %>
snippet ead
<% ${1}.each do |${2}| %>
- ${3}
+ ${0}
<% end %>
snippet for
<% for ${2:item} in ${1} %>
- ${3}
+ ${0}
<% end %>
snippet rp
- <%= render :partial => '${1:item}' %>
+ <%= render :partial => '${0:item}' %>
snippet rpl
- <%= render :partial => '${1:item}', :locals => { :${2:name} => '${3:value}'$4 } %>
+ <%= render :partial => '${1:item}', :locals => { :${2:name} => '${3:value}'${0} } %>
snippet rps
- <%= render :partial => '${1:item}', :status => ${2:500} %>
+ <%= render :partial => '${1:item}', :status => ${0:500} %>
snippet rpc
- <%= render :partial => '${1:item}', :collection => ${2:items} %>
+ <%= render :partial => '${1:item}', :collection => ${0:items} %>
snippet lia
- <%= link_to '${1:link text...}', :action => '${2:index}' %>
+ <%= link_to '${1:link text...}', :action => '${0:index}' %>
snippet liai
- <%= link_to '${1:link text...}', :action => '${2:edit}', :id => ${3:@item} %>
+ <%= link_to '${1:link text...}', :action => '${2:edit}', :id => ${0:@item} %>
snippet lic
- <%= link_to '${1:link text...}', :controller => '${2:items}' %>
+ <%= link_to '${1:link text...}', :controller => '${0:items}' %>
snippet lica
- <%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:index}' %>
+ <%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${0:index}' %>
snippet licai
- <%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:edit}', :id => ${4:@item} %>
+ <%= link_to '${1:link text...}', :controller => '${2:items}', :action => '${3:edit}', :id => ${0:@item} %>
snippet yield
- <%= yield ${1::content_symbol} %>${2}
+ <%= yield ${1::content_symbol} %>
snippet conf
<% content_for :${1:head} do %>
- ${2}
+ ${0}
<% end %>
snippet cs
<%= collection_select <+object+>, <+method+>, <+collection+>, <+value_method+>, <+text_method+><+, <+[options]+>, <+[html_options]+>+> %>
snippet ct
- <%= content_tag '${1:DIV}', ${2:content}${3:,options} %>
+ <%= content_tag '${1:DIV}', ${2:content}${0:,options} %>
snippet ff
<%= form_for @${1:model} do |f| %>
- ${2}
+ ${0}
<% end %>
snippet ffi
- <%= ${1:f}.input :${2:attribute} %>
+ <%= ${1:f}.input :${0:attribute} %>
snippet ffcb
- <%= ${1:f}.check_box :${2:attribute} %>
+ <%= ${1:f}.check_box :${0:attribute} %>
snippet ffe
<% error_messages_for :${1:model} %>
<%= form_for @${2:model} do |f| %>
- ${3}
+ ${0}
<% end %>
snippet ffff
- <%= ${1:f}.file_field :${2:attribute} %>
+ <%= ${1:f}.file_field :${0:attribute} %>
snippet ffhf
- <%= ${1:f}.hidden_field :${2:attribute} %>
+ <%= ${1:f}.hidden_field :${0:attribute} %>
snippet ffl
- <%= ${1:f}.label :${2:attribute}, '${3:$2}' %>
+ <%= ${1:f}.label :${2:attribute}, '${0:$2}' %>
snippet ffpf
- <%= ${1:f}.password_field :${2:attribute} %>
+ <%= ${1:f}.password_field :${0:attribute} %>
snippet ffrb
- <%= ${1:f}.radio_button :${2:attribute}, :${3:tag_value} %>
+ <%= ${1:f}.radio_button :${2:attribute}, :${0:tag_value} %>
snippet ffs
- <%= ${1:f}.submit "${2:submit}" %>
+ <%= ${1:f}.submit "${0:submit}" %>
snippet ffta
- <%= ${1:f}.text_area :${2:attribute} %>
+ <%= ${1:f}.text_area :${0:attribute} %>
snippet fftf
- <%= ${1:f}.text_field :${2:attribute} %>
+ <%= ${1:f}.text_field :${0:attribute} %>
snippet fields
<%= fields_for :${1:model}, @$1 do |${2:f}| %>
- ${3}
+ ${0}
<% end %>
snippet i18
- I18n.t('${1:type.key}')${2}
+ I18n.t('${1:type.key}')
snippet it
- <%= image_tag "${1}"${2} %>
+ <%= image_tag "${1}"${0} %>
snippet jit
- <%= javascript_include_tag ${1::all} %>
+ <%= javascript_include_tag ${0::all} %>
snippet jsit
- <%= javascript_include_tag "${1}" %>
+ <%= javascript_include_tag "${0}" %>
snippet lim
- <%= link_to ${1:model}.${2:name}, ${3:$1}_path(${4:$1}) %>
+ <%= link_to ${1:model}.${2:name}, ${3:$1}_path(${0:$1}) %>
snippet linp
- <%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${4:@$2}, ${5:@$3}) %>
+ <%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${4:@$2}, ${0:@$3}) %>
snippet linpp
- <%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${4:@$2}) %>
+ <%= link_to "${1:Link text...}", ${2:parent}_${3:child}_path(${0:@$2}) %>
snippet lip
- <%= link_to "${1:Link text...}", ${2:model}_path(${3:@$2}) %>
+ <%= link_to "${1:Link text...}", ${2:model}_path(${0:@$2}) %>
snippet lipp
- <%= link_to "${1:Link text...}", ${2:model}s_path %>
+ <%= link_to "${1:Link text...}", ${0:model}s_path %>
snippet lt
- <%= link_to "${1:name}", ${2:dest} %>
+ <%= link_to "${1:name}", ${0:dest} %>
snippet ntc
<%= number_to_currency(${1}) %>
snippet ofcfs
- <%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${4:selected_value} %>
+ <%= options_from_collection_for_select ${1:collection}, ${2:value_method}, ${3:text_method}, ${0:selected_value} %>
snippet rf
- <%= render :file => "${1:file}"${2} %>
+ <%= render :file => "${1:file}"${0} %>
snippet rt
- <%= render :template => "${1:file}"${2} %>
+ <%= render :template => "${1:file}"${0} %>
snippet slt
- <%= stylesheet_link_tag ${1::all}, :cache => ${2:true} %>
+ <%= stylesheet_link_tag ${1::all}, :cache => ${0:true} %>
snippet sslt
- <%= stylesheet_link_tag "${1}" %>
+ <%= stylesheet_link_tag "${0}" %>
snippet if
<% if ${1} %>
- ${2}
+ ${0}
<% end %>
snippet ife
<% if ${1} %>
${2}
<% else %>
- ${3}
+ ${0}
<% end %>
diff --git a/snippets/falcon.snippets b/snippets/falcon.snippets
index 50c3694..c523980 100644
--- a/snippets/falcon.snippets
+++ b/snippets/falcon.snippets
@@ -3,30 +3,30 @@ snippet #!
# Import
snippet imp
- import ${1:module}
+ import ${0:module}
# Function
snippet fun
function ${2:function_name}(${3})
- ${4}
+ ${0}
end
# Class
snippet class
class ${1:class_name}(${2:class_params})
- ${3:/* members/methods */}
+ ${0:/* members/methods */}
end
# If
snippet if
if ${1:condition}
- ${2}
+ ${0}
end
# If else
snippet ife
if ${1:condition}
- ${2}
+ ${0}
else
${1}
end
@@ -34,13 +34,13 @@ snippet ife
# If else if
snippet eif
elif ${1:condition}
- ${2}
+ ${0}
# Switch case
snippet switch
switch ${1:expression}
case ${2:item}
- case ${3:item}
+ case ${0:item}
default
end
@@ -48,24 +48,24 @@ snippet switch
snippet select
select ${1:variable}
case ${2:TypeSpec}
- case ${3:TypeSpec}
+ case ${0:TypeSpec}
default
end
# For/in Loop
snippet forin
for ${1:element} in ${2:container}
- ${3}
+ ${0}
end
# For/to Loop
snippet forto
for ${1:lowerbound} to ${2:upperbound}
- ${3}
+ ${0}
end
# While Loop
snippet wh
while ${1:conidition}
- ${2}
+ ${0}
end
diff --git a/snippets/go.snippets b/snippets/go.snippets
index 7e2ad4c..03f7649 100644
--- a/snippets/go.snippets
+++ b/snippets/go.snippets
@@ -5,7 +5,7 @@ snippet vr
var ${1} ${2} = ${3}
# append
snippet ap
- append(${1:slice}, ${2:value})
+ append(${1:slice}, ${0:value})
# bool
snippet bl
bool
@@ -17,31 +17,31 @@ snippet br
break
# channel
snippet ch
- chan ${1:int}
+ chan ${0:int}
# case
snippet cs
case ${1:value}:
- ${2}
+ ${0}
# const
snippet c
- const ${1:NAME} = ${2:0}
+ const ${1:NAME} = ${0:0}
# constants with iota
snippet co
const (
${1:NAME1} = iota
- ${2:NAME2}
+ ${0:NAME2}
)
# continue
snippet cn
continue
# defer
snippet df
- defer ${1:func}()
+ defer ${0:func}()
# defer recover
snippet dfr
defer func() {
if err := recover(); err != nil {
- ${1}
+ ${0}
}
}()
# gpl
@@ -63,7 +63,7 @@ snippet gpl
* Copyright (C) ${1:Author}, `strftime("%Y")`
*/
- ${2}
+ ${0}
# int
snippet i
int
@@ -71,7 +71,7 @@ snippet i
snippet im
import (
"${1:package}"
- )${2}
+ )
# interface
snippet in
interface{}
@@ -79,23 +79,23 @@ snippet in
snippet inf
interface ${1:name} {
${2:/* methods */}
- }${3}
+ }
# if condition
snippet if
if ${1:/* condition */} {
${2}
- }${3}
+ }
# else snippet
snippet el
else {
${1}
- }${2}
+ }
# error snippet
snippet ir
if err != nil {
return err
}
- ${1}
+ ${0}
# false
snippet f
false
@@ -118,64 +118,64 @@ snippet ie
} else {
${3}
}
- ${4}
+ ${0}
# for loop
snippet fo
for ${2:i} := 0; $2 < ${1:count}; $2${3:++} {
${4}
}
- ${5}
+ ${0}
# for range loop
snippet fr
for ${1:k}, ${2:v} := range ${3} {
${4}
}
- ${5}
+ ${0}
# function simple
snippet fun
func ${1:funcName}(${2}) ${3:error} {
${4}
}
- ${5}
+ ${0}
# function on receiver
snippet fum
func (self ${1:type}) ${2:funcName}(${3}) ${4:error} {
${5}
}
- ${6}
+ ${0}
# log printf
snippet lf
- log.Printf("%${1:s}", ${2:var})${3}
+ log.Printf("%${1:s}", ${2:var})
# log printf
snippet lp
- log.Println("${1}")${2}
+ log.Println("${1}")
# make
snippet mk
- make(${1:[]string}, ${2:0})
+ make(${1:[]string}, ${0:0})
# map
snippet mp
- map[${1:string}]${2:int}
+ map[${1:string}]${0:int}
# main()
snippet main
func main() {
${1}
}
- ${2}
+ ${0}
# new
snippet nw
- new(${1:type})
+ new(${0:type})
# panic
snippet pn
- panic("${1:msg}")
+ panic("${0:msg}")
# print
snippet pr
- fmt.Printf("%${1:s}\n", ${2:var})${3}
+ fmt.Printf("%${1:s}\n", ${2:var})
# range
snippet rn
- range ${1}
+ range ${0}
# return
snippet rt
- return ${1}
+ return ${0}
# result
snippet rs
result
@@ -187,7 +187,7 @@ snippet sl
case ${4:v2} := <-${5:chan2}
${6}
default:
- ${7}
+ ${0}
}
# string
snippet sr
@@ -197,7 +197,7 @@ snippet st
struct ${1:name} {
${2:/* data */}
}
- ${3}
+ ${0}
# switch
snippet sw
switch ${1:var} {
@@ -206,21 +206,21 @@ snippet sw
case ${4:value2}:
${5}
default:
- ${6}
+ ${0}
}
snippet sp
- fmt.Sprintf("%${1:s}", ${2:var})${3}
+ fmt.Sprintf("%${1:s}", ${2:var})
# true
snippet t
true
# variable declaration
snippet v
- var ${1:t} ${2:string}
+ var ${1:t} ${0:string}
# goroutine named function
snippet g
- go ${1:funcName}(${2})
+ go ${1:funcName}(${0})
# goroutine anonymous function
snippet ga
go func(${1} ${2:type}) {
${3:/* code */}
- }(${4})
+ }(${0})
diff --git a/snippets/haml.snippets b/snippets/haml.snippets
index 0466087..09217c6 100644
--- a/snippets/haml.snippets
+++ b/snippets/haml.snippets
@@ -5,20 +5,20 @@ snippet t
${1:headers}
%tr
%td
- ${2:headers}
+ ${0:headers}
snippet ul
%ul
%li
- ${1:item}
+ ${0:item}
%li
snippet rp
- = render :partial => "${1:item}"
+ = render :partial => "${0:item}"
snippet rpc
- = render :partial => "${1:item}", :collection => ${2:@$1s}
+ = render :partial => "${1:item}", :collection => ${0:@$1s}
snippet rpl
- = render :partial => "${1:item}", :locals => { :${2:$1} => ${3:@$1}
+ = render :partial => "${1:item}", :locals => { :${2:$1} => ${0:@$1}
snippet rpo
- = render :partial => "${1:item}", :object => ${2:@$1}
+ = render :partial => "${1:item}", :object => ${0:@$1}
snippet lt
= link_to ${1:name}, ${2:dest}
snippet mt
@@ -29,9 +29,9 @@ snippet ife
- if ${1:condition}
${2}
- else
- ${3}
+ ${0}
snippet ifp
- if ${1:condition}.presence?
- ${2}
+ ${0}
snippet ntc
= number_to_currency(${1})
diff --git a/snippets/haskell.snippets b/snippets/haskell.snippets
index 3857d8b..f5f1598 100644
--- a/snippets/haskell.snippets
+++ b/snippets/haskell.snippets
@@ -1,5 +1,5 @@
snippet lang
- {-# LANGUAGE ${1:OverloadedStrings} #-}
+ {-# LANGUAGE ${0:OverloadedStrings} #-}
snippet info
-- |
-- Module : ${1:Module.Namespace}
@@ -10,26 +10,26 @@ snippet info
-- Stability : ${6:experimental}
-- Portability : ${7:unknown}
--
- -- ${8:Description}
+ -- ${0:Description}
--
snippet import
- import ${1:Data.Text}
+ import ${0:Data.Text}
snippet import2
- import ${1:Data.Text} (${2:head})
+ import ${1:Data.Text} (${0:head})
snippet importq
- import qualified ${1:Data.Text} as ${2:T}
+ import qualified ${1:Data.Text} as ${0:T}
snippet inst
instance ${1:Monoid} ${2:Type} where
- ${3}
+ ${0}
snippet type
- type ${1:Type} = ${2:Type}
+ type ${1:Type} = ${0:Type}
snippet data
- data ${1:Type} = ${2:$1} ${3:Int}
+ data ${1:Type} = ${2:$1} ${0:Int}
snippet newtype
- newtype ${1:Type} = ${2:$1} ${3:Int}
+ newtype ${1:Type} = ${2:$1} ${0:Int}
snippet class
class ${1:Class} a where
- ${2}
+ ${0}
snippet module
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (
) where
@@ -37,46 +37,46 @@ snippet module
snippet const
${1:name} :: ${2:a}
- $1 = ${3:undefined}
+ $1 = ${0:undefined}
snippet fn
${1:fn} :: ${2:a} -> ${3:a}
- $1 ${4} = ${5:undefined}
+ $1 ${4} = ${0:undefined}
snippet fn2
${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}
- $1 ${5} = ${6:undefined}
+ $1 ${5} = ${0:undefined}
snippet ap
- ${1:map} ${2:fn} ${3:list}
+ ${1:map} ${2:fn} ${0:list}
snippet do
do
snippet λ
- \${1:x} -> ${2}
+ \${1:x} -> ${0}
snippet \
- \${1:x} -> ${2}
+ \${1:x} -> ${0}
snippet <-
- ${1:a} <- ${2:m a}
+ ${1:a} <- ${0:m a}
snippet ←
- ${1:a} <- ${2:m a}
+ ${1:a} <- ${0:m a}
snippet ->
- ${1:m a} -> ${2:a}
+ ${1:m a} -> ${0:a}
snippet →
- ${1:m a} -> ${2:a}
+ ${1:m a} -> ${0:a}
snippet tup
- (${1:a}, ${2:b})
+ (${1:a}, ${0:b})
snippet tup2
- (${1:a}, ${2:b}, ${3:c})
+ (${1:a}, ${2:b}, ${0:c})
snippet tup3
- (${1:a}, ${2:b}, ${3:c}, ${4:d})
+ (${1:a}, ${2:b}, ${3:c}, ${0:d})
snippet rec
${1:Record} { ${2:recFieldA} = ${3:undefined}
- , ${4:recFieldB} = ${5:undefined}
+ , ${4:recFieldB} = ${0:undefined}
}
snippet case
case ${1:something} of
- ${2} -> ${3}
+ ${2} -> ${0}
snippet let
let ${1} = ${2}
in ${3}
snippet where
where
- ${1:fn} = ${2:undefined}
+ ${1:fn} = ${0:undefined}
diff --git a/snippets/html.snippets b/snippets/html.snippets
index a83089c..f25e1bc 100644
--- a/snippets/html.snippets
+++ b/snippets/html.snippets
@@ -97,353 +97,353 @@ snippet docx
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
# Attributes
snippet attr
- ${1:attribute}="${2:property}"
+ ${1:attribute}="${0:property}"
snippet attr+
- ${1:attribute}="${2:property}" attr+${3}
+ ${1:attribute}="${2:property}" attr+
snippet .
- class="${1}"${2}
+ class="${1}"
snippet #
- id="${1}"${2}
+ id="${1}"
snippet alt
- alt="${1}"${2}
+ alt="${1}"
snippet charset
- charset="${1:utf-8}"${2}
+ charset="${1:utf-8}"
snippet data
- data-${1}="${2:$1}"${3}
+ data-${1}="${2:$1}"
snippet for
- for="${1}"${2}
+ for="${1}"
snippet height
- height="${1}"${2}
+ height="${1}"
snippet href
- href="${1:#}"${2}
+ href="${1:#}"
snippet lang
- lang="${1:en}"${2}
+ lang="${1:en}"
snippet media
- media="${1}"${2}
+ media="${1}"
snippet name
- name="${1}"${2}
+ name="${1}"
snippet rel
- rel="${1}"${2}
+ rel="${1}"
snippet scope
- scope="${1:row}"${2}
+ scope="${1:row}"
snippet src
- src="${1}"${2}
+ src="${1}"
snippet title=
- title="${1}"${2}
+ title="${1}"
snippet type
- type="${1}"${2}
+ type="${1}"
snippet value
- value="${1}"${2}
+ value="${1}"
snippet width
- width="${1}"${2}
+ width="${1}"
# Elements
snippet a
- ${2:$1}
+ ${0:$1}
snippet a.
- ${3:$1}
+ ${0:$1}
snippet a#
- ${3:$1}
+ ${0:$1}
snippet a:ext
- ${2:$1}
+ ${0:$1}
snippet a:mail
- ${3:email me}
+ ${0:email me}
snippet abbr
- ${2}
+ ${0}
snippet address
- ${1}
+ ${0}
snippet area
-
+
snippet area+
- area+${5}
+ area+
snippet area:c
-
+
snippet area:d
-
+
snippet area:p
-
+
snippet area:r
-
+
snippet article
- ${1}
+ ${0}
snippet body
- ${1}
+ ${0}
snippet br
-
${1}
+
snippet button
-
+
snippet button.
-
+
snippet button#
-
+
snippet button:s
-
+
snippet button:r
-
+
snippet canvas
snippet caption
- ${1}
+ ${0}
snippet col
- ${1}
+ ${0}
snippet details
-
- ${1}
+ ${0}
snippet dl.
- ${2}
+ ${0}
snippet dl#
- ${2}
+ ${0}
snippet dl+
snippet dt
- ${1}
+ ${0}
snippet h1.
- ${2}
+ ${0}
snippet h1#
- ${2}
+ ${0}
snippet h2
- ${1}
+ ${0}
snippet h2.
- ${2}
+ ${0}
snippet h2#
- ${2}
+ ${0}
snippet h3
- ${1}
+ ${0}
snippet h3.
- ${2}
+ ${0}
snippet h3#
- ${2}
+ ${0}
snippet h4
- ${1}
+ ${0}
snippet h4.
- ${2}
+ ${0}
snippet h4#
- ${2}
+ ${0}
snippet h5
- ${1}
+ ${0}
snippet h5.
- ${2}
+ ${0}
snippet h5#
- ${2}
+ ${0}
snippet h6
- ${1}
+ ${0}
snippet h6.
- ${2}
+ ${0}
snippet h6#
- ${2}
+ ${0}
snippet head