blob: 475462517f7a46ec3aee2535b883ae010d6030e5 [file] [log] [blame]
Skyler Greyba17b652022-09-09 14:22:54 +01001# A valid snippet should starts with:
2#
3# snippet trigger_word [ "description" [ options ] ]
4#
5# and end with:
6#
7# endsnippet
8#
9# Snippet options:
10#
11# b - Beginning of line.
12# i - In-word expansion.
13# w - Word boundary.
14# r - Regular expression
15# e - Custom context snippet
16# A - Snippet will be triggered automatically, when condition matches.
17#
18# Basic example:
19#
20# snippet emitter "emitter properties" b
21# private readonly ${1} = new Emitter<$2>()
22# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
23# endsnippet
Skyler Greyba17b652022-09-09 14:22:54 +010024# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
25
Skyler Grey3ca577e2022-10-30 23:25:51 +000026snippet latex "A latex block" w
27$${0}$
28endsnippet
29
30snippet dydx "The derivative" i
Skyler Greyba17b652022-09-09 14:22:54 +010031\frac{dy}{dx}
32endsnippet
33
Skyler Grey3ca577e2022-10-30 23:25:51 +000034snippet dydt "The derivative of `y` WRT `t`" i
35\frac{dy}{dx}
36endsnippet
37
38snippet dydx "The derivative of `x` WRT `t`" i
39\frac{dy}{dx}
40endsnippet
41
42snippet iidx "Integrate indefinitely with respect to x" i
43\int ${0} \text{ d}x
44endsnippet
45
46snippet idx "Integrate definitely with respect to x" i
47\int{${0}}{${1}}${2} \text{ d}x
48endsnippet
49
50snippet ihat "The I vector" i
51\hat{\bm{i}}
52endsnippet
53
54snippet jhat "The J vector" i
55\hat{\bm{j}}
56endsnippet
57
58snippet vec "A vector" i
59\bm{${0}}
60endsnippet
61
62snippet col "A column vector" i
63\begin{bmatrix}${0}\end{bmatrix}
64endsnippet
65
66snippet nl "A latex newline (e.g. for column vectors)" i
67\\\\
68endsnippet
69
70snippet d2ydx2 "The second derivative" i
Skyler Greyba17b652022-09-09 14:22:54 +010071\frac{d^2y}{dx^2}
72endsnippet
Skyler Grey3ca577e2022-10-30 23:25:51 +000073
74snippet nospell "Disable spellcheck on the visually-selected region"
75<!-- spell-checker:disable -->
76${VISUAL}
77<!-- spell-checker:enable -->
78endsnippet