Mercurial > vim
comparison runtime/doc/builtin.txt @ 29861:8dca33bca038 v9.0.0269
patch 9.0.0269: getscriptinfo() does not include the version
Commit: https://github.com/vim/vim/commit/520f6ef60a59f7b5f3da9199999d13dbe817d3ce
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Aug 25 17:40:40 2022 +0100
patch 9.0.0269: getscriptinfo() does not include the version
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Aug 2022 18:45:04 +0200 |
parents | 31c598083364 |
children | 1342ee83ab97 |
comparison
equal
deleted
inserted
replaced
29860:21b386bb3f61 | 29861:8dca33bca038 |
---|---|
251 getqflist({what}) Dict get specific quickfix list properties | 251 getqflist({what}) Dict get specific quickfix list properties |
252 getreg([{regname} [, 1 [, {list}]]]) | 252 getreg([{regname} [, 1 [, {list}]]]) |
253 String or List contents of a register | 253 String or List contents of a register |
254 getreginfo([{regname}]) Dict information about a register | 254 getreginfo([{regname}]) Dict information about a register |
255 getregtype([{regname}]) String type of a register | 255 getregtype([{regname}]) String type of a register |
256 getscriptinfo() List list of sourced scripts | 256 getscriptinfo([{opts}]) List list of sourced scripts |
257 gettabinfo([{expr}]) List list of tab pages | 257 gettabinfo([{expr}]) List list of tab pages |
258 gettabvar({nr}, {varname} [, {def}]) | 258 gettabvar({nr}, {varname} [, {def}]) |
259 any variable {varname} in tab {nr} or {def} | 259 any variable {varname} in tab {nr} or {def} |
260 gettabwinvar({tabnr}, {winnr}, {name} [, {def}]) | 260 gettabwinvar({tabnr}, {winnr}, {name} [, {def}]) |
261 any {name} in {winnr} in tab page {tabnr} | 261 any {name} in {winnr} in tab page {tabnr} |
4087 In |Vim9-script| {regname} must be one character. | 4087 In |Vim9-script| {regname} must be one character. |
4088 | 4088 |
4089 Can also be used as a |method|: > | 4089 Can also be used as a |method|: > |
4090 GetRegname()->getregtype() | 4090 GetRegname()->getregtype() |
4091 | 4091 |
4092 getscriptinfo() *getscriptinfo()* | 4092 getscriptinfo([{opts}) *getscriptinfo()* |
4093 Returns a |List| with information about all the sourced Vim | 4093 Returns a |List| with information about all the sourced Vim |
4094 scripts in the order they were sourced, like what | 4094 scripts in the order they were sourced, like what |
4095 `:scriptnames` shows. | 4095 `:scriptnames` shows. |
4096 | 4096 |
4097 Each item in the returned List is a |Dict| with the following | 4097 Each item in the returned List is a |Dict| with the following |
4102 name vim script file name. | 4102 name vim script file name. |
4103 sid script ID |<SID>|. | 4103 sid script ID |<SID>|. |
4104 sourced script ID of the actually sourced script that | 4104 sourced script ID of the actually sourced script that |
4105 this script name links to, if any, otherwise | 4105 this script name links to, if any, otherwise |
4106 zero | 4106 zero |
4107 version vimscript version (|scriptversion|) | |
4108 | |
4109 The optional Dict argument {opts} supports the following | |
4110 items: | |
4111 name script name match pattern. If specified, | |
4112 information about scripts with name | |
4113 that match the pattern "name" are returned. | |
4107 | 4114 |
4108 gettabinfo([{tabnr}]) *gettabinfo()* | 4115 gettabinfo([{tabnr}]) *gettabinfo()* |
4109 If {tabnr} is not specified, then information about all the | 4116 If {tabnr} is not specified, then information about all the |
4110 tab pages is returned as a |List|. Each List item is a | 4117 tab pages is returned as a |List|. Each List item is a |
4111 |Dictionary|. Otherwise, {tabnr} specifies the tab page | 4118 |Dictionary|. Otherwise, {tabnr} specifies the tab page |