diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-29 04:16:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-29 04:16:57 +0100 |
commit | 69bf634858a2a75f2984e42b1e4017bc529a040a (patch) | |
tree | 1584b32f67463ec2b31ac858e5ada499a34967af /runtime | |
parent | 8b530c1ff91f07cf6b0289a536992b7dfbc86598 (diff) | |
download | vim-git-69bf634858a2a75f2984e42b1e4017bc529a040a.tar.gz |
patch 8.1.2233: cannot get the Vim command line argumentsv8.1.2233
Problem: Cannot get the Vim command line arguments.
Solution: Add v:argv. (Dmitri Vereshchagin, closes #1322)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index f50c8c5b8..30ec02d3c 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.1. Last change: 2019 Oct 26 +*eval.txt* For Vim version 8.1. Last change: 2019 Oct 29 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1662,6 +1662,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. @@ -3034,6 +3038,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_ functions are documented here: |assert-functions-details| |