diff options
author | Marc Coquand <marc@mccd.space> | 2024-07-16 14:37:42 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-07-16 14:37:42 -0500 |
commit | bf3d786d0711b23d09ce2cd09f2b8bcb41196e72 (patch) | |
tree | 18c4cc3c3126a26129acea221818711407da33cc /vim | |
parent | 0f7e6e7763774eb848b929b7cf1c6f8026e8fe49 (diff) | |
download | bsd-bf3d786d0711b23d09ce2cd09f2b8bcb41196e72.tar.gz bsd-bf3d786d0711b23d09ce2cd09f2b8bcb41196e72.tar.bz2 bsd-bf3d786d0711b23d09ce2cd09f2b8bcb41196e72.zip |
Vim
Diffstat (limited to 'vim')
-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 |