-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.snippets
57 lines (45 loc) · 823 Bytes
/
all.snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
snippet \#! "hashbang"
#!/usr/bin/env bash
endsnippet
snippet !{! "Curly braces" r
{${VISUAL}$1}$0
endsnippet
snippet !{ ! "Curly braces w space" r
{ ${VISUAL}$1 }$0
endsnippet
snippet !'! "single quote" r
'${VISUAL}$1'$0
endsnippet
snippet !"! "double quotes" r
"${VISUAL}$1"$0
endsnippet
snippet ``` "tripple angled quotes"
\`\`\`${1}
${VISUAL}${2}
\`\`\`$0
endsnippet
snippet !(?<!`)`! "angled quotes" r
\`${1:${VISUAL}}\`$0
endsnippet
snippet ( "parens" i
(${VISUAL}$1)$0
endsnippet
snippet '\[' "square brackets" r
[${VISUAL}$1]$0
endsnippet
snippet '\[ ' "square brackets w space" r
[ ${VISUAL}$1 ]$0
endsnippet
snippet !'''! "tripple quotes" bw
'''$1
${VISUAL}$2
'''$0
endsnippet
snippet !"""! "tripple double quotes"
"""$1
${VISUAL}$2
"""
endsnippet
snippet today "Today's date"
`date %F`
endsnippet