summaryrefslogtreecommitdiff
path: root/vim/downloads/opt/snippets/snippets.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vim/downloads/opt/snippets/snippets.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/downloads/opt/snippets/snippets.vim b/vim/downloads/opt/snippets/snippets.vim
new file mode 100644
index 0000000..de15141
--- /dev/null
+++ b/vim/downloads/opt/snippets/snippets.vim
@@ -0,0 +1,6 @@
+autocmd FileType go
+ \ :iabbrev <buffer> err@ if err != nil {}<Left><Enter><Left>
+
+autocmd FileType go
+ \ :iabbrev <buffer> fat@ log.Fatal(" %v", err)<Esc>F%i<Left>
+