diff options
Diffstat (limited to '')
-rw-r--r-- | vim/pack/downloads/opt/snippets/snippets.vim | 9 |
1 files changed, 6 insertions, 3 deletions
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,14 +1,17 @@ autocmd FileType go - \ :iabbrev <buffer> err@ if err != nil {<CR><CR>}<Left><Up><Tab> + \ :iabbrev <buffer> err@ if err != nil {<CR><CR>}<Left><Up><tab> autocmd FileType go - \ :iabbrev <buffer> h@ <Backspace><Esc>^ifunc <Esc>A(c *gin.Context) {<CR><CR>}<Left><Up><Tab> + \ :iabbrev <buffer> h@ <Backspace><Esc>^ifunc <Esc>A(c *gin.Context) {<CR><CR>}<Left><Up><tab> autocmd FileType go - \ :iabbrev <buffer> t@ <Backspace><Esc>^ifunc <Esc>A(t *testing.T) {<CR><CR>}<Left><Up><Tab> + \ :iabbrev <buffer> t@ <Backspace><Esc>^ifunc <Esc>A(t *testing.T) {<CR><CR>}<Left><Up><tab> autocmd FileType go + \ :iabbrev <buffer> s@ <Backspace><Esc>^itype <Esc>A struct {<CR><CR>}<Up><tab> + +autocmd FileType go \ :iabbrev <buffer> f@ <Backspace><Esc>^ifunc <Esc>A() {<CR><CR>}<Esc><Up><Up>f(li autocmd FileType go |