aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-01 22:53:23 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-01 22:58:20 +0200
commit4d830ca31bd4346bd2cced48f056414162fa00a3 (patch)
treec83a6a77b5b2b70022036e023cc57e947db82eee /runtime/doc
parent7f5402899b0ed4c47296836cade782342425340e (diff)
downloadrneovim-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')
-rw-r--r--runtime/doc/eval.txt15
-rw-r--r--runtime/doc/index.txt3
-rw-r--r--runtime/doc/message.txt6
-rw-r--r--runtime/doc/usr_41.txt1
4 files changed, 22 insertions, 3 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.
diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt
index 4cab36a3c8..da48f7f84d 100644
--- a/runtime/doc/index.txt
+++ b/runtime/doc/index.txt
@@ -1496,7 +1496,8 @@ tag command action ~
|:sbrewind| :sbr[ewind] split window and go to first file in the
buffer list
|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
-|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
+|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
+|:scriptversion| :scriptv[ersion] version of Vim script used
|:scscope| :scs[cope] split window and execute cscope command
|:set| :se[t] show or set options
|:setfiletype| :setf[iletype] set 'filetype', unless it was set already
diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt
index dccf39b3df..864eea8f7f 100644
--- a/runtime/doc/message.txt
+++ b/runtime/doc/message.txt
@@ -670,11 +670,13 @@ being disabled. Remove the 'C' flag from the 'cpoptions' option to enable it.
This happens when an Ex command with mandatory argument(s) was executed, but
no argument has been specified.
- *E474* *E475* >
+ *E474* *E475* *E983* >
Invalid argument
Invalid argument: {arg}
+ Duplicate argument: {arg}
-An Ex command has been executed, but an invalid argument has been specified.
+An Ex command or function has been executed, but an invalid argument has been
+specified.
*E488* >
Trailing characters
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index 2c38c6fef2..a80ab963b1 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -770,6 +770,7 @@ System functions and manipulation of files:
systemlist() get the result of a shell command as a list
hostname() name of the system
readfile() read a file into a List of lines
+ readdir() get a List of file names in a directory
writefile() write a List of lines or Blob into a file
Date and Time: *date-functions* *time-functions*