diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-01-31 15:27:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 15:27:01 +0100 |
commit | 79b92da0d289d1adcd0bb27c7ee5786be460c166 (patch) | |
tree | 8cedbea9a81059228303239537cf7fc4346f0d12 /runtime/doc/builtin.txt | |
parent | f195345c936eaecf423ab79473003e1ab337a17d (diff) | |
download | rneovim-79b92da0d289d1adcd0bb27c7ee5786be460c166.tar.gz rneovim-79b92da0d289d1adcd0bb27c7ee5786be460c166.tar.bz2 rneovim-79b92da0d289d1adcd0bb27c7ee5786be460c166.zip |
vim-patch:partial:f10911e5db16 (#17248)
Update runtime files
https://github.com/vim/vim/commit/f10911e5db16f1fe6ab519c5d091ad0c1df0d063
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index a421de078b..bb04376f57 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1723,6 +1723,19 @@ exists({expr}) The result is a Number, which is |TRUE| if {expr} is For checking if a file exists use |filereadable()|. The {expr} argument is a string, which contains one of these: + varname internal variable (see + dict.key |internal-variables|). Also works + list[i] for |curly-braces-names|, |Dictionary| + entries, |List| items, etc. + Beware that evaluating an index may + cause an error message for an invalid + expression. E.g.: > + :let l = [1, 2, 3] + :echo exists("l[5]") +< 0 > + :echo exists("l[xx]") +< E121: Undefined variable: xx + 0 &option-name Vim option (only checks if it exists, not if it really works) +option-name Vim option that works. @@ -1733,19 +1746,6 @@ exists({expr}) The result is a Number, which is |TRUE| if {expr} is or user defined function (see |user-function|). Also works for a variable that is a Funcref. - varname internal variable (see - |internal-variables|). Also works - for |curly-braces-names|, |Dictionary| - entries, |List| items, etc. Beware - that evaluating an index may cause an - error message for an invalid - expression. E.g.: > - :let l = [1, 2, 3] - :echo exists("l[5]") -< 0 > - :echo exists("l[xx]") -< E121: Undefined variable: xx - 0 :cmdname Ex command: built-in command, user command or command modifier |:command|. Returns: |