snippet fun "Create a function"
function! ${1:FunctionName}(${2:Arguments})

${0:function body}

endfunction
endsnippet

snippet pyfun "Create a function"
function! ${1:FunctionName}(${2:Arguments})
python3 <<EOF
import vim

${0:function body}

EOF
endfunction
endsnippet
