vimrc: add Go abbreviations

This commit is contained in:
Rob Watson 2021-01-29 14:54:53 +01:00
parent b67374e032
commit 9ad91efded
1 changed files with 3 additions and 0 deletions

View File

@ -42,3 +42,6 @@ iabbrev mk make([]MyType, 0)<esc>9h
iabbrev wr w http.ResponseWriter, r *http.Request iabbrev wr w http.ResponseWriter, r *http.Request
iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
iabbrev ttt t *testing.T iabbrev ttt t *testing.T
iabbrev errp <esc>ccif err != nil {<cr>panic(err)<cr>}
iabbrev errf <esc>ccif err != nil {<cr>log.Fatal(err)<cr>}
iabbrev errl <esc>ccif err != nil {<cr>fmt.Println(err)<cr>}