|
1 | | -*eval.txt* For Vim version 8.1. Last change: 2019 Feb 22 |
| 1 | +*eval.txt* For Vim version 8.1. Last change: 2019 Mar 02 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -2672,6 +2672,7 @@ test_null_partial() Funcref null value for testing |
2672 | 2672 | test_null_string() String null value for testing |
2673 | 2673 | test_option_not_set({name}) none reset flag indicating option was set |
2674 | 2674 | test_override({expr}, {val}) none test with Vim internal overrides |
| 2675 | +test_refcount({expr}) Number get the reference count of {expr} |
2675 | 2676 | test_scrollbar({which}, {value}, {dragging}) |
2676 | 2677 | none scroll in the GUI for testing |
2677 | 2678 | test_settime({expr}) none set current time for testing |
@@ -3538,7 +3539,7 @@ complete_check() *complete_check()* |
3538 | 3539 |
|
3539 | 3540 | *confirm()* |
3540 | 3541 | confirm({msg} [, {choices} [, {default} [, {type}]]]) |
3541 | | - Confirm() offers the user a dialog, from which a choice can be |
| 3542 | + confirm() offers the user a dialog, from which a choice can be |
3542 | 3543 | made. It returns the number of the choice. For the first |
3543 | 3544 | choice this is 1. |
3544 | 3545 | Note: confirm() is only supported when compiled with dialog |
@@ -4061,7 +4062,7 @@ expand({expr} [, {nosuf} [, {list}]]) *expand()* |
4061 | 4062 | all "README" files in the current directory and below: > |
4062 | 4063 | :echo expand("**/README") |
4063 | 4064 | < |
4064 | | - Expand() can also be used to expand variables and environment |
| 4065 | + expand() can also be used to expand variables and environment |
4065 | 4066 | variables that are only known in a shell. But this can be |
4066 | 4067 | slow, because a shell may be used to do the expansion. See |
4067 | 4068 | |expr-env-expand|. |
@@ -4964,10 +4965,16 @@ getloclist({nr} [, {what}]) *getloclist()* |
4964 | 4965 | If the optional {what} dictionary argument is supplied, then |
4965 | 4966 | returns the items listed in {what} as a dictionary. Refer to |
4966 | 4967 | |getqflist()| for the supported items in {what}. |
4967 | | - If {what} contains 'filewinid', then returns the id of the |
4968 | | - window used to display files from the location list. This |
4969 | | - field is applicable only when called from a location list |
4970 | | - window. See |location-list-file-window| for more details. |
| 4968 | + |
| 4969 | + In addition to the items supported by |getqflist()| in {what}, |
| 4970 | + the following item is supported by |getloclist()|: |
| 4971 | + |
| 4972 | + filewinid id of the window used to display files |
| 4973 | + from the location list. This field is |
| 4974 | + applicable only when called from a |
| 4975 | + location list window. See |
| 4976 | + |location-list-file-window| for more |
| 4977 | + details. |
4971 | 4978 |
|
4972 | 4979 | getmatches() *getmatches()* |
4973 | 4980 | Returns a |List| with all matches previously defined by |
@@ -5069,6 +5076,9 @@ getqflist([{what}]) *getqflist()* |
5069 | 5076 | nr get information for this quickfix list; zero |
5070 | 5077 | means the current quickfix list and "$" means |
5071 | 5078 | the last quickfix list |
| 5079 | + qfbufnr number of the buffer displayed in the quickfix |
| 5080 | + window. Returns 0 if the quickfix buffer is |
| 5081 | + not present. See |quickfix-buffer|. |
5072 | 5082 | size number of entries in the quickfix list |
5073 | 5083 | title get the list title |quickfix-title| |
5074 | 5084 | winid get the quickfix |window-ID| |
@@ -5097,6 +5107,8 @@ getqflist([{what}]) *getqflist()* |
5097 | 5107 | items quickfix list entries. If not present, set to |
5098 | 5108 | an empty list. |
5099 | 5109 | nr quickfix list number. If not present, set to 0 |
| 5110 | + qfbufnr number of the buffer displayed in the quickfix |
| 5111 | + window. If not present, set to 0. |
5100 | 5112 | size number of entries in the quickfix list. If not |
5101 | 5113 | present, set to 0. |
5102 | 5114 | title quickfix list title text. If not present, set |
@@ -9578,6 +9590,11 @@ test_override({name}, {val}) *test_override()* |
9578 | 9590 | < The value of "starting" is saved. It is restored by: > |
9579 | 9591 | call test_override('starting', 0) |
9580 | 9592 |
|
| 9593 | +test_refcount({expr}) *test_refcount()* |
| 9594 | + Return the reference count of {expr}. When {expr} is of a |
| 9595 | + type that does not have a reference count, returns -1. Only |
| 9596 | + to be used for testing. |
| 9597 | + |
9581 | 9598 | test_scrollbar({which}, {value}, {dragging}) *test_scrollbar()* |
9582 | 9599 | Pretend using scrollbar {which} to move it to position |
9583 | 9600 | {value}. {which} can be: |
@@ -11208,14 +11225,14 @@ This does NOT work: > |
11208 | 11225 | commands are skipped. |
11209 | 11226 | When {pattern} is omitted all errors are caught. |
11210 | 11227 | Examples: > |
11211 | | - :catch /^Vim:Interrupt$/ " catch interrupts (CTRL-C) |
11212 | | - :catch /^Vim\%((\a\+)\)\=:E/ " catch all Vim errors |
11213 | | - :catch /^Vim\%((\a\+)\)\=:/ " catch errors and interrupts |
11214 | | - :catch /^Vim(write):/ " catch all errors in :write |
11215 | | - :catch /^Vim\%((\a\+)\)\=:E123/ " catch error E123 |
11216 | | - :catch /my-exception/ " catch user exception |
11217 | | - :catch /.*/ " catch everything |
11218 | | - :catch " same as /.*/ |
| 11228 | + :catch /^Vim:Interrupt$/ " catch interrupts (CTRL-C) |
| 11229 | + :catch /^Vim\%((\a\+)\)\=:E/ " catch all Vim errors |
| 11230 | + :catch /^Vim\%((\a\+)\)\=:/ " catch errors and interrupts |
| 11231 | + :catch /^Vim(write):/ " catch all errors in :write |
| 11232 | + :catch /^Vim\%((\a\+)\)\=:E123:/ " catch error E123 |
| 11233 | + :catch /my-exception/ " catch user exception |
| 11234 | + :catch /.*/ " catch everything |
| 11235 | + :catch " same as /.*/ |
11219 | 11236 | < |
11220 | 11237 | Another character can be used instead of / around the |
11221 | 11238 | {pattern}, so long as it does not have a special |
|
0 commit comments