summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-01 17:00:03 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-01 17:00:03 +0200
commitf5a48010ef9e47319185f1aaac1bc6d45cd4d47a (patch)
treecf15e3bf7d2370d598b48a0ca392744f806d4521 /runtime
parent2ec208172c37b06a6177e32359214e5e02bfbed5 (diff)
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing errorv8.2.1342
Problem: Vim9: accidentally using "x" gives a confusing error. Solution: Disallow using ":t" in Vim9 script. (issue #6399)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index 5d264b673d..2c4d1dbc19 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -190,8 +190,8 @@ To intentionally avoid a variable being available later, a block can be used:
An existing variable cannot be assigned to with `:let`, since that implies a
declaration. Global, window, tab, buffer and Vim variables can only be used
-without `:let`, because they are are not really declared, they can also be
-deleted with `:unlet`.
+without `:let`, because they are not really declared, they can also be deleted
+with `:unlet`.
Variables cannot shadow previously defined variables.
Variables may shadow Ex commands, rename the variable if needed.
@@ -352,10 +352,11 @@ No curly braces expansion ~
|curly-braces-names| cannot be used.
-No :xit, :append, :change or :insert ~
+No :xit, :t, :append, :change or :insert ~
-These commands are too easily confused with local variable names. Instead of
-`:x` or `:xit` you can use `:exit`.
+These commands are too easily confused with local variable names.
+Instead of `:x` or `:xit` you can use `:exit`.
+Instead of `:t` you can use `:copy`.
Comparators ~