summaryrefslogtreecommitdiff
path: root/vim/pack/downloads/opt/snippets/snippets.vim
blob: d4c6e4e673c597765f75607ef8dac27899b93a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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> 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