summaryrefslogtreecommitdiff
path: root/vim/downloads/opt/snippets/snippets.vim
blob: de151410a51efd9884e108aa7450ddcc0e0760e0 (plain)
1
2
3
4
5
6
autocmd FileType go
  \ :iabbrev <buffer> err@ if err != nil {}<Left><Enter><Left>

autocmd FileType go
  \ :iabbrev <buffer> fat@ log.Fatal(" %v", err)<Esc>F%i<Left>