1
0
forked from aniani/vim

runtime(doc): fix two typos in vim9.txt and options.txt (#13258)

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Aliaksei Budavei
2023-10-03 17:39:53 +03:00
committed by GitHub
parent 2dfc22908e
commit b043ff34c1
2 changed files with 2 additions and 2 deletions

View File

@@ -435,7 +435,7 @@ Set using a variable with lambda expression: >
let &tagfunc = L let &tagfunc = L
In Vim9 script, in a compiled function, you can use a lambda, but a In Vim9 script, in a compiled function, you can use a lambda, but a
closured does not work, because the function will be called without the closure does not work, because the function will be called without the
context of where it was defined. context of where it was defined.

View File

@@ -1789,7 +1789,7 @@ filename. For example: >
Then you can use "that.item", etc. You are free to choose the name "that". Then you can use "that.item", etc. You are free to choose the name "that".
Use something that will be recognized as referring to the imported script. Use something that will be recognized as referring to the imported script.
Avoid command names, command modifiers and builtin function names, because the Avoid command names, command modifiers and builtin function names, because the
name will shadow them. Better not start the name starts with a capital name will shadow them. It's better not to start the name with a capital
letter, since it can then also shadow global user commands and functions. letter, since it can then also shadow global user commands and functions.
Also, you cannot use the name for something else in the script, such as a Also, you cannot use the name for something else in the script, such as a
function or variable name. function or variable name.