在vimscript中,function定义可以采用abort参数.引用文档,
When the [abort] argument is added, the function will
abort as soon as an error is detected
Run Code Online (Sandbox Code Playgroud)
这使我严重质疑在遇到错误时通常会做什么功能.盲目地跌入黑暗中?
什么是abort真正做到?它会破坏所有try...endtry块吗?您何时想使用它,何时想避免使用它?
vim ×1