1- *eval.txt* For Vim version 8.1. Last change: 2019 Aug 28
1+ *eval.txt* For Vim version 8.1. Last change: 2019 Aug 31
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5517,7 +5517,7 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
55175517 gettabwinvar({tabnr}, {winnr}, '&')
55185518
55195519< Can also be used as a | method | : >
5520- GetTabnr()->gettabvar (winnr, varname)
5520+ GetTabnr()->gettabwinvar (winnr, varname)
55215521
55225522 gettagstack([{nr} ]) *gettagstack()*
55235523 The result is a Dict, which is the tag stack of window {nr} .
@@ -5547,6 +5547,9 @@ gettagstack([{nr}]) *gettagstack()*
55475547
55485548 See | tagstack | for more information about the tag stack.
55495549
5550+ Can also be used as a | method | : >
5551+ GetWinnr()->gettagstack()
5552+
55505553 getwininfo([{winid} ]) *getwininfo()*
55515554 Returns information about windows as a List with Dictionaries.
55525555
@@ -5581,6 +5584,9 @@ getwininfo([{winid}]) *getwininfo()*
55815584 winrow topmost screen column of the window,
55825585 row from | win_screenpos() |
55835586
5587+ Can also be used as a | method | : >
5588+ GetWinnr()->getwininfo()
5589+
55845590 getwinpos([{timeout} ]) *getwinpos()*
55855591 The result is a list with two numbers, the result of
55865592 getwinposx() and getwinposy() combined:
@@ -5600,6 +5606,10 @@ getwinpos([{timeout}]) *getwinpos()*
56005606 " Do some work here
56015607 endwhile
56025608<
5609+
5610+ Can also be used as a | method | : >
5611+ GetTimeout()->getwinpos()
5612+ <
56035613 *getwinposx()*
56045614getwinposx() The result is a Number, which is the X coordinate in pixels of
56055615 the left hand side of the GUI Vim window. Also works for an
@@ -5619,6 +5629,9 @@ getwinvar({winnr}, {varname} [, {def}]) *getwinvar()*
56195629 Examples: >
56205630 :let list_is_on = getwinvar(2, '&list')
56215631 :echo "myvar = " . getwinvar(1, 'myvar')
5632+
5633+ < Can also be used as a | method | : >
5634+ GetWinnr()->getwinvar(varname)
56225635<
56235636glob({expr} [, {nosuf} [, {list} [, {alllinks} ]]]) *glob()*
56245637 Expand the file wildcards in {expr} . See | wildcards | for the
@@ -5656,6 +5669,9 @@ glob({expr} [, {nosuf} [, {list} [, {alllinks}]]]) *glob()*
56565669 See | expand() | for expanding special Vim variables. See
56575670 | system() | for getting the raw output of an external command.
56585671
5672+ Can also be used as a | method | : >
5673+ GetExpr()->glob()
5674+
56595675 glob2regpat({expr} ) *glob2regpat()*
56605676 Convert a file pattern, as used by glob(), into a search
56615677 pattern. The result can be used to match with a string that
@@ -5668,7 +5684,9 @@ glob2regpat({expr}) *glob2regpat()*
56685684 Note that the result depends on the system. On MS-Windows
56695685 a backslash usually means a path separator.
56705686
5671- *globpath()*
5687+ Can also be used as a | method | : >
5688+ GetExpr()->glob2regpat()
5689+ < *globpath()*
56725690globpath({path} , {expr} [, {nosuf} [, {list} [, {alllinks} ]]])
56735691 Perform glob() on all directories in {path} and concatenate
56745692 the results. Example: >
@@ -5704,6 +5722,10 @@ globpath({path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]])
57045722< Upwards search and limiting the depth of "**" is not
57055723 supported, thus using 'path' will not always work properly.
57065724
5725+ Can also be used as a | method | , the base is passed as the
5726+ second argument: >
5727+ GetExpr()->globpath(&rtp)
5728+ <
57075729 *has()*
57085730has({feature} ) The result is a Number, which is 1 if the feature {feature} is
57095731 supported, zero otherwise. The {feature} argument is a
0 commit comments