endfunction

結束一個函式區塊中的命令列表。

endfunction([<name>])

請參閱 function() 命令。

可選的 <name> 參數僅為向後相容性而支援。如果使用,它必須與開頭 function 命令的 <name> 參數完全相同。