]>
Commit | Line | Data |
---|---|---|
1 | snippet header | |
2 | " File: ${1:`expand('%:t')`} | |
3 | " Author: ${2:`g:snips_author`} | |
4 | " Description: ${3} | |
5 | ${4:" Last Modified: `strftime("%B %d, %Y")`} | |
6 | snippet guard | |
7 | if exists('${1:did_`Filename()`}') || &cp${2: || version < 700} | |
8 | finish | |
9 | endif | |
10 | let $1 = 1${3} | |
11 | snippet f | |
12 | fun ${1:function_name}(${2}) | |
13 | ${3:" code} | |
14 | endf | |
15 | snippet for | |
16 | for ${1:needle} in ${2:haystack} | |
17 | ${3:" code} | |
18 | endfor | |
19 | snippet wh | |
20 | while ${1:condition} | |
21 | ${2:" code} | |
22 | endw | |
23 | snippet if | |
24 | if ${1:condition} | |
25 | ${2:" code} | |
26 | endif | |
27 | snippet ife | |
28 | if ${1:condition} | |
29 | ${2} | |
30 | else | |
31 | ${3} | |
32 | endif |