From 9053e1033e69f71389cc24196c6c588f8c35a683 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Mon, 1 Jul 2024 21:27:23 -0500 Subject: vimrc --- vim/pack/downloads/opt/snippets/snippets.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 vim/pack/downloads/opt/snippets/snippets.vim (limited to 'vim/pack/downloads') 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 err@ if err != nil {} + +autocmd FileType go + \ :iabbrev hand@ ^ifunc A(c *gin.Context) { + +autocmd FileType go + \ :iabbrev fat@ log.Fatal(" %v", err)F%i + +:autocmd FileType php,html.twig,html,javascript,typescript,vue,go + \ :iabbrev if@ if() {}%i + + -- cgit v1.2.3