The third article in this series explained Vimscript's variadic function arguments with a small example that generated comment boxes around a specified text.
本系列的 使用脚本编写 Vim 编辑器,第 3 部分:内置列表用一个在指定文本周围生成评论框的小例子,解释了Vimscript 的variadic函数参数。
Named and variadic parameters can be used in the same function, simply by placing the variadic ellipsis after the list of named parameters.
可以在同一个函数中同时使用命名参数和可变参数,只需要将可变参数的省略号放在命名参数列表之后。
Named and variadic parameters can be used in the same function, simply by placing the variadic ellipsis after the list of named parameters.
可以在同一个函数中同时使用命名参数和可变参数,只需要将可变参数的省略号放在命名参数列表之后。
应用推荐