“功能”与“功能”之间有什么区别?和“功能!”。在VIM中? [英] What is difference between "function" and "function!" in VIM?
本文介绍了“功能”与“功能”之间有什么区别?和“功能!”。在VIM中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
function和function!有什么区别?
解决方案
当一个按这个名字的函数已经存在并且[!]是
没有被使用时,会给出错误信息。当使用[!]时,默认替换现有函数
。除非它正在执行
,那是一个错误。
I beheld quite a few usage of "function!" in others vimrc files, but there is no easy-to-find documentation of "function!".
What's the difference between "function" and "function!"?
解决方案
:help user-functions
When a function by this name already exists and [!] is
not used an error message is given. When [!] is used,
an existing function is silently replaced. Unless it
is currently being executed, that is an error.
这篇关于“功能”与“功能”之间有什么区别?和“功能!”。在VIM中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文