Mercurial > vim
comparison runtime/doc/eval.txt @ 24569:e3ec2ec8841a
Update runtime files
Commit: https://github.com/vim/vim/commit/4c295027a426986566cd7a76c47a6d3a529727e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 2 17:19:11 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 May 2021 17:30:05 +0200 |
parents | 5c98ea5f5d6e |
children | 840665e74421 |
comparison
equal
deleted
inserted
replaced
24568:3671ff322103 | 24569:e3ec2ec8841a |
---|---|
1 *eval.txt* For Vim version 8.2. Last change: 2021 Apr 07 | 1 *eval.txt* For Vim version 8.2. Last change: 2021 Apr 24 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1959 will happen. | 1959 will happen. |
1960 <empty> Nothing, the autocommand should do | 1960 <empty> Nothing, the autocommand should do |
1961 everything that needs to be done. | 1961 everything that needs to be done. |
1962 The default is empty. If another (invalid) value is used then | 1962 The default is empty. If another (invalid) value is used then |
1963 Vim behaves like it is empty, there is no warning message. | 1963 Vim behaves like it is empty, there is no warning message. |
1964 | |
1965 *v:fname* *fname-variable* | |
1966 v:fname The file name set by 'includeexpr'. Empty otherwise. | |
1964 | 1967 |
1965 *v:fname_in* *fname_in-variable* | 1968 *v:fname_in* *fname_in-variable* |
1966 v:fname_in The name of the input file. Valid while evaluating: | 1969 v:fname_in The name of the input file. Valid while evaluating: |
1967 option used for ~ | 1970 option used for ~ |
1968 'charconvert' file to be converted | 1971 'charconvert' file to be converted |
5773 When the position is after the text then "column" is the | 5776 When the position is after the text then "column" is the |
5774 length of the text in bytes. | 5777 length of the text in bytes. |
5775 | 5778 |
5776 If the mouse is over a popup window then that window is used. | 5779 If the mouse is over a popup window then that window is used. |
5777 | 5780 |
5778 | |
5779 When using |getchar()| the Vim variables |v:mouse_lnum|, | 5781 When using |getchar()| the Vim variables |v:mouse_lnum|, |
5780 |v:mouse_col| and |v:mouse_winid| also provide these values. | 5782 |v:mouse_col| and |v:mouse_winid| also provide these values. |
5781 | 5783 |
5782 *getpid()* | 5784 *getpid()* |
5783 getpid() Return a Number which is the process ID of the Vim process. | 5785 getpid() Return a Number which is the process ID of the Vim process. |
6719 :echo islocked('alist') " 1 | 6721 :echo islocked('alist') " 1 |
6720 :echo islocked('alist[1]') " 0 | 6722 :echo islocked('alist[1]') " 0 |
6721 | 6723 |
6722 < When {expr} is a variable that does not exist you get an error | 6724 < When {expr} is a variable that does not exist you get an error |
6723 message. Use |exists()| to check for existence. | 6725 message. Use |exists()| to check for existence. |
6726 In Vim9 script it does not work for local variables. | |
6724 | 6727 |
6725 Can also be used as a |method|: > | 6728 Can also be used as a |method|: > |
6726 GetName()->islocked() | 6729 GetName()->islocked() |
6727 | 6730 |
6728 isnan({expr}) *isnan()* | 6731 isnan({expr}) *isnan()* |