From b718b8ef6eaacec84668c40f9ab52dda12df6669 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Wed, 3 Jul 2024 12:10:12 -0500 Subject: Alpine stuff --- 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/opt/snippets') 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