comparison runtime/doc/various.txt @ 29285:729a7c00fabc

Update runtime files Commit: https://github.com/vim/vim/commit/e1dc76fbf333243ecfdfc3c0a81ea9984913b4f5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 25 18:01:32 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Jun 2022 19:15:06 +0200
parents 3e6e6b4e74eb
children dc4de65a7fb7
comparison
equal deleted inserted replaced
29284:784dae749bdb 29285:729a7c00fabc
1 *various.txt* For Vim version 8.2. Last change: 2022 May 21 1 *various.txt* For Vim version 8.2. Last change: 2022 Jun 25
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
556 In legacy script: If the variable doesn't exist, then 556 In legacy script: If the variable doesn't exist, then
557 it is created. If the variable exists, then it is 557 it is created. If the variable exists, then it is
558 initialized to an empty string. After the redirection 558 initialized to an empty string. After the redirection
559 starts, if the variable is removed or locked or the 559 starts, if the variable is removed or locked or the
560 variable type is changed, then further command output 560 variable type is changed, then further command output
561 messages will cause errors. 561 messages will cause errors. When using a local
562 variable (l:var in a function or s:var in a script)
563 and another `:redir` causes the current one to end,
564 the scope might be different and the assignment fails.
562 In Vim9 script: the variable must have been declared 565 In Vim9 script: the variable must have been declared
563 as a string. 566 as a string.
564 The variable will remain empty until redirection ends. 567 The variable will remain empty until redirection ends.
565 Only string variables can be used. 568 Only string variables can be used.
566 To get the output of one command the |execute()| 569 To get the output of one command the |execute()|