vimrc: add Go abbreviations
This commit is contained in:
parent
b67374e032
commit
9ad91efded
|
@ -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>}
|
||||||
|
|
Loading…
Reference in New Issue