aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorkuuote <36663503+kuuote@users.noreply.github.com>2020-05-25 03:45:25 +0900
committerGitHub <noreply@github.com>2020-05-24 20:45:25 +0200
commite89462d9855eef7718d482df7f92da4279a1c5c3 (patch)
tree4f7b5164d071b9396a7f3a854a9fb15c251711f1 /runtime/doc/eval.txt
parent97bcab8f5eeb8c5b2627fdfc3adad2682bb3681e (diff)
downloadrneovim-e89462d9855eef7718d482df7f92da4279a1c5c3.tar.gz
rneovim-e89462d9855eef7718d482df7f92da4279a1c5c3.tar.bz2
rneovim-e89462d9855eef7718d482df7f92da4279a1c5c3.zip
vim-patch:8.1.2233: cannot get the Vim command line arguments (#12117)
Problem: Cannot get the Vim command line arguments. Solution: Add v:argv. (Dmitri Vereshchagin, closes vim/vim#1322) https://github.com/vim/vim/commit/69bf634858a2a75f2984e42b1e4017bc529a040a
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 1992c34102..214d815006 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1423,6 +1423,10 @@ PREDEFINED VIM VARIABLES *vim-variable* *v:var* *v:*
*E963*
Some variables can be set by the user, but the type cannot be changed.
+ *v:argv* *argv-variable*
+v:argv The command line arguments Vim was invoked with. This is a
+ list of strings. The first item is the Vim command.
+
*v:beval_col* *beval_col-variable*
v:beval_col The number of the column, over which the mouse pointer is.
This is the byte index in the |v:beval_lnum| line.
@@ -2600,6 +2604,7 @@ argv([{nr} [, {winid}])
the whole |arglist| is returned.
The {winid} argument specifies the window ID, see |argc()|.
+ For the Vim command line arguments see |v:argv|.
assert_beeps({cmd}) *assert_beeps()*
Run {cmd} and add an error message to |v:errors| if it does