From bf3d786d0711b23d09ce2cd09f2b8bcb41196e72 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 16 Jul 2024 14:37:42 -0500 Subject: Vim --- vim/pack/downloads/opt/snippets/snippets.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'vim/pack') diff --git a/vim/pack/downloads/opt/snippets/snippets.vim b/vim/pack/downloads/opt/snippets/snippets.vim index 92f0af7..40743b2 100644 --- a/vim/pack/downloads/opt/snippets/snippets.vim +++ b/vim/pack/downloads/opt/snippets/snippets.vim @@ -1,13 +1,16 @@ autocmd FileType go - \ :iabbrev err@ if err != nil {} + \ :iabbrev err@ if err != nil {} autocmd FileType go - \ :iabbrev h@ ^ifunc A(c *gin.Context) {} + \ :iabbrev h@ ^ifunc A(c *gin.Context) {} autocmd FileType go - \ :iabbrev t@ ^ifunc A(t *testing.T) {} + \ :iabbrev t@ ^ifunc A(t *testing.T) {} +autocmd FileType go + \ :iabbrev s@ ^itype A struct {} + autocmd FileType go \ :iabbrev f@ ^ifunc A() {}f(li -- cgit v1.2.3