summaryrefslogtreecommitdiffstats
path: root/runtime/doc/vim9.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-29 21:55:35 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-29 21:55:35 +0200
commit89a9c159f23fb7b3e24e6d09068adfc24a73afcb (patch)
treeffc62c1104f8222091cf262a37dbb52bf01f5a61 /runtime/doc/vim9.txt
parent6e82351130ddb8d13cf3748b47f07cae77886fc7 (diff)
Update runtime files
Diffstat (limited to 'runtime/doc/vim9.txt')
-rw-r--r--runtime/doc/vim9.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index 1628e9cb82..346189b05d 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -1,4 +1,4 @@
-*vim9.txt* For Vim version 8.2. Last change: 2021 Aug 11
+*vim9.txt* For Vim version 8.2. Last change: 2021 Aug 23
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -106,6 +106,9 @@ script and `:def` functions; details are below:
or curly-braces names.
- A range before a command must be prefixed with a colon: >
:%s/this/that
+- Executing a register with "@r" does not work, you can prepend a colon or use
+ `:exe`: >
+ :exe @a
- Unless mentioned specifically, the highest |scriptversion| is used.
@@ -154,7 +157,7 @@ Compilation is done when any of these is encountered:
function was defined
- `:disassemble` is used for the function.
- a function that is compiled calls the function or uses it as a function
- reference
+ reference (so that the argument and return types can be checked)
*E1091*
If compilation fails it is not tried again on the next call, instead this
error is given: "E1091: Function is not compiled: {name}".
@@ -168,7 +171,7 @@ created yet. In this case you can call `execute()` to invoke it at runtime. >
"closure". A `:def` function always aborts on an error (unless `:silent!` was
used for the command or inside a `:try` block), does not get a range passed
cannot be a "dict" function, and can always be a closure.
-
+ *vim9-no-dict-function*
Later classes will be added, which replaces the "dict function" mechanism.
For now you will need to pass the dictionary explicitly: >
def DictFunc(d: dict<any>, arg: string)
@@ -477,7 +480,7 @@ use the command instead: >
If the expression starts with "!" this is interpreted as a shell command, not
negation of a condition. Thus this is a shell command: >
!shellCommand->something
-Put the expression in parenthesis to use the "!" for negation: >
+Put the expression in parentheses to use the "!" for negation: >
(!expression)->Method()
Note that while variables need to be defined before they can be used,
@@ -741,8 +744,8 @@ White space is not allowed:
arg # OK
)
-White space space is not allowed in a `:set` command between the option name
-and a following "&", "!", "<", "=", "+=", "-=" or "^=".
+White space is not allowed in a `:set` command between the option name and a
+following "&", "!", "<", "=", "+=", "-=" or "^=".
No curly braces expansion ~