1 2 3 4 5 6 7
set buffer snippets %opt{snippets} # keep global snippets (if any) set -add buffer snippets 'err != nil' 'err@' %{ snippets-insert %{if err != nil { } } }