comparison runtime/doc/builtin.txt @ 29810:761631155a90 v9.0.0244

patch 9.0.0244: cannot easily get the list of sourced scripts Commit: https://github.com/vim/vim/commit/f768c3d19c518822d89dec4cc3947ddeea249316 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Aug 22 13:15:13 2022 +0100 patch 9.0.0244: cannot easily get the list of sourced scripts Problem: Cannot easily get the list of sourced scripts. Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan, closes #10957)
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Aug 2022 14:30:04 +0200
parents 90a966f5c77a
children 6b7020f3d856
comparison
equal deleted inserted replaced
29809:7847804c8a72 29810:761631155a90
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 gettabinfo([{expr}]) List list of tab pages 257 gettabinfo([{expr}]) List list of tab pages
257 gettabvar({nr}, {varname} [, {def}]) 258 gettabvar({nr}, {varname} [, {def}])
258 any variable {varname} in tab {nr} or {def} 259 any variable {varname} in tab {nr} or {def}
259 gettabwinvar({tabnr}, {winnr}, {name} [, {def}]) 260 gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
260 any {name} in {winnr} in tab page {tabnr} 261 any {name} in {winnr} in tab page {tabnr}
4086 In |Vim9-script| {regname} must be one character. 4087 In |Vim9-script| {regname} must be one character.
4087 4088
4088 Can also be used as a |method|: > 4089 Can also be used as a |method|: >
4089 GetRegname()->getregtype() 4090 GetRegname()->getregtype()
4090 4091
4092 getscriptinfo() *getscriptinfo()*
4093 Returns a |List| with information about all the sourced Vim
4094 scripts in the order they were sourced. (|:scriptinfo|)
4095
4096 Each item in the returned List is a |Dict| with the following
4097 items:
4098 autoload set to TRUE for a script that was used with
4099 |import autoload| but was not actually sourced
4100 yet.
4101 name vim script file name.
4102 sid script ID |<SID>|.
4103
4091 gettabinfo([{tabnr}]) *gettabinfo()* 4104 gettabinfo([{tabnr}]) *gettabinfo()*
4092 If {tabnr} is not specified, then information about all the 4105 If {tabnr} is not specified, then information about all the
4093 tab pages is returned as a |List|. Each List item is a 4106 tab pages is returned as a |List|. Each List item is a
4094 |Dictionary|. Otherwise, {tabnr} specifies the tab page 4107 |Dictionary|. Otherwise, {tabnr} specifies the tab page
4095 number and information about that one is returned. If the tab 4108 number and information about that one is returned. If the tab