diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-01 22:53:23 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-01 22:58:20 +0200 |
| commit | 4d830ca31bd4346bd2cced48f056414162fa00a3 (patch) | |
| tree | c83a6a77b5b2b70022036e023cc57e947db82eee /runtime/doc/eval.txt | |
| parent | 7f5402899b0ed4c47296836cade782342425340e (diff) | |
| download | rneovim-4d830ca31bd4346bd2cced48f056414162fa00a3.tar.gz rneovim-4d830ca31bd4346bd2cced48f056414162fa00a3.tar.bz2 rneovim-4d830ca31bd4346bd2cced48f056414162fa00a3.zip | |
vim-patch:62e1bb4a111e
Update runtime files.
https://github.com/vim/vim/commit/62e1bb4a111e7ce570c30965f40a68a07a9da5b0
NA: vim-patch:496555fd1821
Diffstat (limited to 'runtime/doc/eval.txt')
| -rw-r--r-- | runtime/doc/eval.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 2af955b8c2..57ef380cc5 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2245,6 +2245,7 @@ py3eval({expr}) any evaluate |python3| expression pyxeval({expr}) any evaluate |python_x| expression range({expr} [, {max} [, {stride}]]) List items from {expr} to {max} +readdir({dir} [, {expr}]) List file names in {dir} selected by {expr} readfile({fname} [, {binary} [, {max}]]) List get list of lines from file {fname} reg_executing() Number get the executing register name @@ -4769,6 +4770,9 @@ glob({expr} [, {nosuf} [, {list} [, {alllinks}]]]) *glob()* If the expansion fails, the result is an empty String or List. + You can also use |readdir()| if you need to do complicated + things, such as limiting the number of matches. + A name for a non-existing file is not included. A symbolic link is only included if it points to an existing file. However, when the {alllinks} argument is present and it is @@ -6473,6 +6477,17 @@ readfile({fname} [, {binary} [, {max}]]) the result is an empty list. Also see |writefile()|. + *readdir()* +readdir({directory} [, {expr}]) + Return a list with file and directory names in {directory}. + You can also use |glob()| if you don't need to do complicated + things, such as limiting the number of matches. + + When {expr} is omitted all entries are included. + When {expr} is given, it is evaluated to check what to do: + If {expr} results in -1 then no further entries will + be handled. + reg_executing() *reg_executing()* Returns the single letter name of the register being executed. Returns an empty string when no register is being executed. |