comparison runtime/doc/vim9.txt @ 21584:d0c76ce48326 v8.2.1342

patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error Commit: https://github.com/vim/vim/commit/f5a48010ef9e47319185f1aaac1bc6d45cd4d47a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 1 17:00:03 2020 +0200 patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error Problem: Vim9: accidentally using "x" gives a confusing error. Solution: Disallow using ":t" in Vim9 script. (issue https://github.com/vim/vim/issues/6399)
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Aug 2020 17:15:03 +0200
parents b0b57d91671c
children 1b345fb68ae3
comparison
equal deleted inserted replaced
21583:84990b1adf55 21584:d0c76ce48326
188 } 188 }
189 echo temp " Error! 189 echo temp " Error!
190 190
191 An existing variable cannot be assigned to with `:let`, since that implies a 191 An existing variable cannot be assigned to with `:let`, since that implies a
192 declaration. Global, window, tab, buffer and Vim variables can only be used 192 declaration. Global, window, tab, buffer and Vim variables can only be used
193 without `:let`, because they are are not really declared, they can also be 193 without `:let`, because they are not really declared, they can also be deleted
194 deleted with `:unlet`. 194 with `:unlet`.
195 195
196 Variables cannot shadow previously defined variables. 196 Variables cannot shadow previously defined variables.
197 Variables may shadow Ex commands, rename the variable if needed. 197 Variables may shadow Ex commands, rename the variable if needed.
198 198
199 Global variables and user defined functions must be prefixed with "g:", also 199 Global variables and user defined functions must be prefixed with "g:", also
350 No curly braces expansion ~ 350 No curly braces expansion ~
351 351
352 |curly-braces-names| cannot be used. 352 |curly-braces-names| cannot be used.
353 353
354 354
355 No :xit, :append, :change or :insert ~ 355 No :xit, :t, :append, :change or :insert ~
356 356
357 These commands are too easily confused with local variable names. Instead of 357 These commands are too easily confused with local variable names.
358 `:x` or `:xit` you can use `:exit`. 358 Instead of `:x` or `:xit` you can use `:exit`.
359 Instead of `:t` you can use `:copy`.
359 360
360 361
361 Comparators ~ 362 Comparators ~
362 363
363 The 'ignorecase' option is not used for comparators that use strings. 364 The 'ignorecase' option is not used for comparators that use strings.