mirror of
https://github.com/iggredible/Learn-Vim
synced 2025-02-17 00:08:26 +00:00
Better word to use
Length --> Number of arguments. I think it is much more correct.
This commit is contained in:
parent
b441c685a8
commit
1d773f3fb3
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ echo Buffet("Noodles", "Sushi")
|
|||
|
||||
The problem with this approach is if you now run `echo Buffet("Noodles")` (with only one variable), Vim complains that it has an undefined variable `a:2`. How can you make it flexible enough to display exactly what the user gives?
|
||||
|
||||
Luckily, Vim has a special variable `a:0` to display the *length* of the argument passed into `...`.
|
||||
Luckily, Vim has a special variable `a:0` to display the *number* of the arguments passed into `...`.
|
||||
|
||||
```
|
||||
function! Buffet(...)
|
||||
|
|
Loading…
Add table
Reference in a new issue