Added snippets to help with math lectures

- snippets: Roman d, axes
- Vim: set fold to markers by default, jump to middle of line mapping
This commit is contained in:
2018-02-05 16:20:14 -05:00
parent 7adfcb7948
commit 9db2037c26
8 changed files with 46 additions and 20 deletions

View File

@@ -15,3 +15,12 @@ endsnippet
snippet ltx "LaTeX" i
LaTeX
endsnippet
snippet evr "Var with escaped quotes" w
\"$${1:var}\"
endsnippet
snippet vr "Var with quotes" w
"$${1:var}"
endsnippet

View File

@@ -1,8 +0,0 @@
snippet evr "Var with escaped quotes" i
\"$${1:var}\"
endsnippet
snippet vr "Var with quotes" i
"$${1:var}"
endsnippet

View File

@@ -1,9 +1,13 @@
snippet al "Align (math)" b
snippet ali "Align (math)" b
\begin{align*}
$0 \\\\
$1 &= $2 \\\\
\end{align*}
endsnippet
snippet al "Align line" b
&= $2 \\\\
endsnippet
snippet pwf "Piecewise function" b
\[
${1:name} = \left.
@@ -45,3 +49,15 @@ endsnippet
snippet thus "Therefore" b
$\therefore$
endsnippet
snippet rd "Roman d" i
\mathrm{d}${1:x} $2
endsnippet
snippet xax "x-axis" i
$x$-axis
endsnippet
snippet yax "y-axis" i
$y$-axis
endsnippet