diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-08-25 17:40:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-25 17:40:40 +0100 |
commit | 520f6ef60a59f7b5f3da9199999d13dbe817d3ce (patch) | |
tree | 7982ec9430d2766a4f4f53066e2172f8311e328a /runtime/doc/builtin.txt | |
parent | 0166e398d11a09662d783fe5db62b414045880f8 (diff) | |
download | vim-git-520f6ef60a59f7b5f3da9199999d13dbe817d3ce.tar.gz |
patch 9.0.0269: getscriptinfo() does not include the versionv9.0.0269
Problem: getscriptinfo() does not include the version. Cannot select
entries by script name.
Solution: Add the "version" item and the "name" argument. (Yegappan
Lakshmanan, closes #10962)
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 49d538d1e..15af01fbb 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -253,7 +253,7 @@ getreg([{regname} [, 1 [, {list}]]]) String or List contents of a register getreginfo([{regname}]) Dict information about a register getregtype([{regname}]) String type of a register -getscriptinfo() List list of sourced scripts +getscriptinfo([{opts}]) List list of sourced scripts gettabinfo([{expr}]) List list of tab pages gettabvar({nr}, {varname} [, {def}]) any variable {varname} in tab {nr} or {def} @@ -4089,7 +4089,7 @@ getregtype([{regname}]) *getregtype()* Can also be used as a |method|: > GetRegname()->getregtype() -getscriptinfo() *getscriptinfo()* +getscriptinfo([{opts}) *getscriptinfo()* Returns a |List| with information about all the sourced Vim scripts in the order they were sourced, like what `:scriptnames` shows. @@ -4104,6 +4104,13 @@ getscriptinfo() *getscriptinfo()* sourced script ID of the actually sourced script that this script name links to, if any, otherwise zero + version vimscript version (|scriptversion|) + + The optional Dict argument {opts} supports the following + items: + name script name match pattern. If specified, + information about scripts with name + that match the pattern "name" are returned. gettabinfo([{tabnr}]) *gettabinfo()* If {tabnr} is not specified, then information about all the |