summaryrefslogtreecommitdiff
path: root/vim/pack/downloads/opt
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-07-16 14:37:42 -0500
committerMarc Coquand <marc@mccd.space>2024-07-16 14:37:42 -0500
commitbf3d786d0711b23d09ce2cd09f2b8bcb41196e72 (patch)
tree18c4cc3c3126a26129acea221818711407da33cc /vim/pack/downloads/opt
parent0f7e6e7763774eb848b929b7cf1c6f8026e8fe49 (diff)
downloadbsd-bf3d786d0711b23d09ce2cd09f2b8bcb41196e72.tar.gz
bsd-bf3d786d0711b23d09ce2cd09f2b8bcb41196e72.tar.bz2
bsd-bf3d786d0711b23d09ce2cd09f2b8bcb41196e72.zip
Vim
Diffstat (limited to '')
-rw-r--r--vim/pack/downloads/opt/snippets/snippets.vim9
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