add usage for enumberic items

This commit is contained in:
Meng Zhuo 2013-06-20 10:27:05 +08:00
parent eaeada33c5
commit d666cfc6a5

View File

@ -75,6 +75,7 @@ def make_items(times, leading='+'):
return ("%s Item\n" % leading) * times
endglobal
# usage: li 3<tab>
snippet "li(st)? (?P<num>\d+)" "List" br
$0
`!p
@ -82,6 +83,7 @@ snip.rv = make_items(match.groupdict()['num'])
`
endsnippet
# usage: ol 3<tab>
snippet "ol(st)? (?P<num>\d+)" "Order List" br
$0
`!p