blob: 24d2ce32ff588bbd5ab2cac67ab708f5a240e7aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
autocmd FileType go
\ :iabbrev <buffer> err@ if err != nil {}<Left><Enter><Left>
autocmd FileType go
\ :iabbrev <buffer> hand@ <Backspace><Esc>^ifunc <Esc>A(c *gin.Context) {
autocmd FileType go
\ :iabbrev <buffer> test@ <Backspace><Esc>^ifunc <Esc>A(t *testing.T) {
autocmd FileType go
\ :iabbrev <buffer> fat@ log.Fatal(" %v", err)<Esc>F%i<Left>
:autocmd FileType php,html.twig,html,javascript,typescript,vue,go
\ :iabbrev <buffer> if@ if() {<CR>}<Esc>%<Left><Left>i
|