comparison runtime/doc/eval.txt @ 25773:11b656e74444

Update runtime files Commit: https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 9 21:55:11 2021 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Sep 2021 22:00:10 +0200
parents d4faa2c5211b
children 8d55e978f95b
comparison
equal deleted inserted replaced
25772:55753c17b73d 25773:11b656e74444
1 *eval.txt* For Vim version 8.2. Last change: 2021 Aug 16 1 *eval.txt* For Vim version 8.2. Last change: 2021 Sep 08
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
4862 4862
4863 finddir({name} [, {path} [, {count}]]) *finddir()* 4863 finddir({name} [, {path} [, {count}]]) *finddir()*
4864 Find directory {name} in {path}. Supports both downwards and 4864 Find directory {name} in {path}. Supports both downwards and
4865 upwards recursive directory searches. See |file-searching| 4865 upwards recursive directory searches. See |file-searching|
4866 for the syntax of {path}. 4866 for the syntax of {path}.
4867
4867 Returns the path of the first found match. When the found 4868 Returns the path of the first found match. When the found
4868 directory is below the current directory a relative path is 4869 directory is below the current directory a relative path is
4869 returned. Otherwise a full path is returned. 4870 returned. Otherwise a full path is returned.
4870 If {path} is omitted or empty then 'path' is used. 4871 If {path} is omitted or empty then 'path' is used.
4872
4871 If the optional {count} is given, find {count}'s occurrence of 4873 If the optional {count} is given, find {count}'s occurrence of
4872 {name} in {path} instead of the first one. 4874 {name} in {path} instead of the first one.
4873 When {count} is negative return all the matches in a |List|. 4875 When {count} is negative return all the matches in a |List|.
4874 This is quite similar to the ex-command |:find|. 4876
4877 This is quite similar to the ex-command `:find`.
4875 {only available when compiled with the |+file_in_path| 4878 {only available when compiled with the |+file_in_path|
4876 feature} 4879 feature}
4877 4880
4878 Can also be used as a |method|: > 4881 Can also be used as a |method|: >
4879 GetName()->finddir() 4882 GetName()->finddir()
5092 name; see |20.2| for details on command abbreviations. 5095 name; see |20.2| for details on command abbreviations.
5093 5096
5094 The string argument {name} may start with a `:` and can 5097 The string argument {name} may start with a `:` and can
5095 include a [range], these are skipped and not returned. 5098 include a [range], these are skipped and not returned.
5096 Returns an empty string if a command doesn't exist or if it's 5099 Returns an empty string if a command doesn't exist or if it's
5097 ambiguous (for user-defined functions). 5100 ambiguous (for user-defined commands).
5098 5101
5099 For example `fullcommand('s')`, `fullcommand('sub')`, 5102 For example `fullcommand('s')`, `fullcommand('sub')`,
5100 `fullcommand(':%substitute')` all return "substitute". 5103 `fullcommand(':%substitute')` all return "substitute".
5101 5104
5102 Can also be used as a |method|: > 5105 Can also be used as a |method|: >