summaryrefslogtreecommitdiff
path: root/vim/pack
diff options
context:
space:
mode:
Diffstat (limited to 'vim/pack')
-rw-r--r--vim/pack/downloads/opt/snippets/snippets.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/vim/pack/downloads/opt/snippets/snippets.vim b/vim/pack/downloads/opt/snippets/snippets.vim
new file mode 100644
index 0000000..d4c6e4e
--- /dev/null
+++ b/vim/pack/downloads/opt/snippets/snippets.vim
@@ -0,0 +1,14 @@
+
+autocmd FileType go
+ \ :iabbrev <buffer> err@ if err != nil {}<Left><Enter><Left>
+
+autocmd FileType go
+ \ :iabbrev <buffer> hand@ <Backspace><Esc>^ifunc <Esc>A(c *gin.Context) {
+
+autocmd FileType go
+ \ :iabbrev <buffer> fat@ log.Fatal(" %v", err)<Esc>F%i<Left>
+
+:autocmd FileType php,html.twig,html,javascript,typescript,vue,go
+ \ :iabbrev <buffer> if@ if() {<CR>}<Esc>%<Left><Left>i
+
+