endfunction

結束函數區塊中的命令列表。

endfunction([<name>])

請參閱 function() 命令。

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