aboutsummaryrefslogtreecommitdiff
path: root/my_snippets
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-30 23:10:40 +0800
committerjdhao <jdhao@hotmail.com>2021-10-30 23:10:40 +0800
commit601a13acb1f075729144091a859dc0f1a0c2d19e (patch)
tree7b0c48c047b23e2a93472abda20e541c2c35ef3b /my_snippets
parentff54203995df355423067c1a9531c67b2c66e602 (diff)
update snippets
Diffstat (limited to 'my_snippets')
-rw-r--r--my_snippets/tex.snippets2
-rw-r--r--my_snippets/vim.snippets6
2 files changed, 4 insertions, 4 deletions
diff --git a/my_snippets/tex.snippets b/my_snippets/tex.snippets
index 7b08644..189d9f9 100644
--- a/my_snippets/tex.snippets
+++ b/my_snippets/tex.snippets
@@ -1,3 +1,3 @@
snippet frac "Math fractions"
\frac{${1:NUM}}{${2:DEN}} $0
-endsnippet \ No newline at end of file
+endsnippet
diff --git a/my_snippets/vim.snippets b/my_snippets/vim.snippets
index 93a089a..a2e0d3c 100644
--- a/my_snippets/vim.snippets
+++ b/my_snippets/vim.snippets
@@ -1,14 +1,14 @@
snippet fun "vim function"
function! ${1:MyFunc}(${2}) abort
- $3
+ $3
endfunction
$0
endsnippet
snippet aug "vim augroup" b
augroup ${1:GROUP_NAME}
- autocmd!
- autocmd ${2:EVENT} ${3:PATTERN} $4
+ autocmd!
+ autocmd ${2:EVENT} ${3:PATTERN} $4
augroup END
$0
endsnippet