comparison runtime/doc/eval.txt @ 23931:5b37a0bf7e3a

Update runtime files Commit: https://github.com/vim/vim/commit/942db23c9cb7532d68048530d749eb84ca94d0cd Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 13 18:14:48 2021 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Feb 2021 18:15:04 +0100
parents a9ed31ab85c3
children 788e10cec9bd
comparison
equal deleted inserted replaced
23930:4997281ea56c 23931:5b37a0bf7e3a
1 *eval.txt* For Vim version 8.2. Last change: 2021 Jan 31 1 *eval.txt* For Vim version 8.2. Last change: 2021 Feb 10
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
5901 third argument both NLs and zero bytes are represented as NLs 5901 third argument both NLs and zero bytes are represented as NLs
5902 (see |NL-used-for-Nul|). 5902 (see |NL-used-for-Nul|).
5903 When the register was not set an empty list is returned. 5903 When the register was not set an empty list is returned.
5904 5904
5905 If {regname} is not specified, |v:register| is used. 5905 If {regname} is not specified, |v:register| is used.
5906 In |Vim9-script| {regname} must be one character.
5906 5907
5907 Can also be used as a |method|: > 5908 Can also be used as a |method|: >
5908 GetRegname()->getreg() 5909 GetRegname()->getreg()
5909 5910
5910 getreginfo([{regname}]) *getreginfo()* 5911 getreginfo([{regname}]) *getreginfo()*
5928 5929
5929 If {regname} is invalid or not set, an empty Dictionary 5930 If {regname} is invalid or not set, an empty Dictionary
5930 will be returned. 5931 will be returned.
5931 If {regname} is not specified, |v:register| is used. 5932 If {regname} is not specified, |v:register| is used.
5932 The returned Dictionary can be passed to |setreg()|. 5933 The returned Dictionary can be passed to |setreg()|.
5934 In |Vim9-script| {regname} must be one character.
5933 5935
5934 Can also be used as a |method|: > 5936 Can also be used as a |method|: >
5935 GetRegname()->getreginfo() 5937 GetRegname()->getreginfo()
5936 5938
5937 getregtype([{regname}]) *getregtype()* 5939 getregtype([{regname}]) *getregtype()*
5941 "V" for |linewise| text 5943 "V" for |linewise| text
5942 "<CTRL-V>{width}" for |blockwise-visual| text 5944 "<CTRL-V>{width}" for |blockwise-visual| text
5943 "" for an empty or unknown register 5945 "" for an empty or unknown register
5944 <CTRL-V> is one character with value 0x16. 5946 <CTRL-V> is one character with value 0x16.
5945 If {regname} is not specified, |v:register| is used. 5947 If {regname} is not specified, |v:register| is used.
5948 In |Vim9-script| {regname} must be one character.
5946 5949
5947 Can also be used as a |method|: > 5950 Can also be used as a |method|: >
5948 GetRegname()->getregtype() 5951 GetRegname()->getregtype()
5949 5952
5950 gettabinfo([{arg}]) *gettabinfo()* 5953 gettabinfo([{arg}]) *gettabinfo()*
9656 < 9659 <
9657 *setreg()* 9660 *setreg()*
9658 setreg({regname}, {value} [, {options}]) 9661 setreg({regname}, {value} [, {options}])
9659 Set the register {regname} to {value}. 9662 Set the register {regname} to {value}.
9660 If {regname} is "" or "@", the unnamed register '"' is used. 9663 If {regname} is "" or "@", the unnamed register '"' is used.
9664 In |Vim9-script| {regname} must be one character.
9661 9665
9662 {value} may be any value returned by |getreg()| or 9666 {value} may be any value returned by |getreg()| or
9663 |getreginfo()|, including a |List| or |Dict|. 9667 |getreginfo()|, including a |List| or |Dict|.
9664 If {options} contains "a" or {regname} is upper case, 9668 If {options} contains "a" or {regname} is upper case,
9665 then the value is appended. 9669 then the value is appended.