fun! Tmr(c,n,m) "头默认,c为参数,要分开的.m为头默认,如默认为^ "n为最多多少.m为缺1个是,头改为多少 let l=split(a:c) let ll=len(l) if ll==a:n return l endif call assert_true(ll==a:n-1) return extend([a:m],l) "加上最前面,没有ret的简写 endf
注意,return没有ret的简写.
return
ret