mirror of
https://github.com/iggredible/Learn-Vim
synced 2024-11-23 11:03:03 +00:00
Add help references to call cmd and call function
This commit is contained in:
parent
73efe0b005
commit
7ad8ed77b5
1 changed files with 3 additions and 1 deletions
|
@ -189,6 +189,8 @@ echo call("Tasty", ["gravy"])
|
|||
|
||||
To clear any confusion, you have just used two different `call` commands: the `:call` command-line command and the `call()` function. The `call()` function accepts as its first argument the function name (string) and its second argument the formal parameters (list).
|
||||
|
||||
To learn more about `:call` and `call()`, check out `:h call()` and `:h :call`.
|
||||
|
||||
## Default Argument
|
||||
|
||||
You can provide a function parameter with a default value with `=`. If you call `Breakfast` with only one argument, the `beverage` argument will use the "milk" default value.
|
||||
|
|
Loading…
Reference in a new issue