go.vim: Add iabbrev

This commit is contained in:
Rob Watson 2022-06-17 17:08:53 +02:00
parent 344bb1783f
commit a6ce992e95
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ iabbrev logpl log.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
iabbrev ctxcc ctx context.Context
iabbrev err! err != nil {<cr><cr>}<esc>kcc<c-r>=Eatchar('\s')<cr>
iabbrev ior io.Reader
iabbrev iorc io.ReadCloser
iabbrev iow io.Writer
iabbrev gof go func() {<cr><cr>}()<esc>kcc<c-r>=Eatchar('\s')<cr>
iabbrev fortc for _, tc := range testCases {<cr>t.Run(tc.name, func(t *testing.T) {<cr><cr>})<cr>}<esc>kkcc<c-r>=Eatchar('\s')<cr>