Mercurial > vim
comparison runtime/doc/various.txt @ 26708:f0d7cb510ce3
Update runtime files
Commit: https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 24 13:18:38 2021 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 Dec 2021 14:30:04 +0100 |
parents | 3a63b1e4a6f4 |
children | 9805a7617981 |
comparison
equal
deleted
inserted
replaced
26707:d1af15dbf206 | 26708:f0d7cb510ce3 |
---|---|
1 *various.txt* For Vim version 8.2. Last change: 2021 Dec 13 | 1 *various.txt* For Vim version 8.2. Last change: 2021 Dec 20 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
547 :redi[r] @"> Redirect messages to the unnamed register. For | 547 :redi[r] @"> Redirect messages to the unnamed register. For |
548 backward compatibility, the ">" after the register | 548 backward compatibility, the ">" after the register |
549 name can be omitted. | 549 name can be omitted. |
550 :redi[r] @">> Append messages to the unnamed register. | 550 :redi[r] @">> Append messages to the unnamed register. |
551 | 551 |
552 :redi[r] => {var} Redirect messages to a variable. If the variable | 552 :redi[r] => {var} Redirect messages to a variable. |
553 doesn't exist, then it is created. If the variable | 553 In legacy script: If the variable doesn't exist, then |
554 exists, then it is initialized to an empty string. | 554 it is created. If the variable exists, then it is |
555 initialized to an empty string. After the redirection | |
556 starts, if the variable is removed or locked or the | |
557 variable type is changed, then further command output | |
558 messages will cause errors. | |
559 In Vim9 script: the variable must have been declared | |
560 as a string. | |
555 The variable will remain empty until redirection ends. | 561 The variable will remain empty until redirection ends. |
556 Only string variables can be used. After the | 562 Only string variables can be used. |
557 redirection starts, if the variable is removed or | |
558 locked or the variable type is changed, then further | |
559 command output messages will cause errors. | |
560 To get the output of one command the |execute()| | 563 To get the output of one command the |execute()| |
561 function can be used instead of redirection. | 564 function can be used instead of redirection. |
562 | 565 |
563 :redi[r] =>> {var} Append messages to an existing variable. Only string | 566 :redi[r] =>> {var} Append messages to an existing variable. Only string |
564 variables can be used. | 567 variables can be used. |