Added some more shortcuts and enabled tabs by default

This commit is contained in:
2022-02-08 12:10:06 -08:00
parent 40d592c799
commit 63a430dc47
3 changed files with 10 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
snippet --- "Debug Break"
fmt.Println("---")
endsnippet
+5 -1
View File
@@ -26,6 +26,10 @@ snippet beg "Begin" b
\end{$1} \end{$1}
endsnippet endsnippet
snippet sec "Section" b
\section{$1}
endsnippet
snippet mk "InlineMath" wA snippet mk "InlineMath" wA
$${1}$`!p $${1}$`!p
if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']: if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:
@@ -49,6 +53,6 @@ snippet corr "Correct"
\textcolor{red}{$1} \textcolor{red}{$1}
endsnippet endsnippet
snippet pm "Parenthesied matrix" A snippet pm "Parenthesied matrix"
\begin{pmatrix}$1\end{pmatrix} \begin{pmatrix}$1\end{pmatrix}
endsnippet endsnippet
+2 -1
View File
@@ -53,7 +53,8 @@ set cc=80
set tw=792034 set tw=792034
set background=dark set background=dark
set clipboard=unnamedplus set clipboard=unnamedplus
set expandtab " Tabs instead of spaces
set noexpandtab
set tabstop=2 set tabstop=2
set shiftwidth=2 set shiftwidth=2
set mouse=a set mouse=a