diff options
author | Marc Coquand <marc@mccd.space> | 2024-07-24 09:53:06 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-07-24 09:53:06 -0500 |
commit | f61cc0a13a8a691ea152d73d7fc27dd67e2480f1 (patch) | |
tree | 42668080125a7eba64bedbedce877553d3542527 /vim/pack/downloads/opt/snippets | |
parent | 8cb6876cb11711169d93e1f82f534c0feba56906 (diff) | |
download | bsd-f61cc0a13a8a691ea152d73d7fc27dd67e2480f1.tar.gz bsd-f61cc0a13a8a691ea152d73d7fc27dd67e2480f1.tar.bz2 bsd-f61cc0a13a8a691ea152d73d7fc27dd67e2480f1.zip |
config updates
Diffstat (limited to 'vim/pack/downloads/opt/snippets')
-rw-r--r-- | vim/pack/downloads/opt/snippets/snippets.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/pack/downloads/opt/snippets/snippets.vim b/vim/pack/downloads/opt/snippets/snippets.vim index 40743b2..c4362f5 100644 --- a/vim/pack/downloads/opt/snippets/snippets.vim +++ b/vim/pack/downloads/opt/snippets/snippets.vim @@ -7,6 +7,10 @@ autocmd FileType go autocmd FileType go \ :iabbrev <buffer> t@ <Backspace><Esc>^ifunc <Esc>A(t *testing.T) {<CR><CR>}<Left><Up><tab> + +autocmd FileType go + \ :iabbrev <buffer> for@ <Backspace><Esc>^ifor _, <Esc>A {<CR><CR>}<Left><Up><tab> + autocmd FileType go \ :iabbrev <buffer> s@ <Backspace><Esc>^itype <Esc>A struct {<CR><CR>}<Up><tab> |