|
1 | | -*eval.txt* For Vim version 7.4. Last change: 2016 Aug 02 |
| 1 | +*eval.txt* For Vim version 7.4. Last change: 2016 Aug 06 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -2339,6 +2339,7 @@ test_null_list() List null value for testing |
2339 | 2339 | test_null_partial() Funcref null value for testing |
2340 | 2340 | test_null_string() String null value for testing |
2341 | 2341 | test_settime({expr}) none set current time for testing |
| 2342 | +timer_info([{id}]) List information about timers |
2342 | 2343 | timer_start({time}, {callback} [, {options}]) |
2343 | 2344 | Number create a timer |
2344 | 2345 | timer_stop({timer}) none stop a timer |
@@ -3392,9 +3393,13 @@ exepath({expr}) *exepath()* |
3392 | 3393 | an empty string is returned. |
3393 | 3394 |
|
3394 | 3395 | *exists()* |
3395 | | -exists({expr}) The result is a Number, which is |TRUE| if {expr} is |
3396 | | - defined, zero otherwise. The {expr} argument is a string, |
3397 | | - which contains one of these: |
| 3396 | +exists({expr}) The result is a Number, which is |TRUE| if {expr} is defined, |
| 3397 | + zero otherwise. |
| 3398 | + |
| 3399 | + For checking for a supported feature use |has()|. |
| 3400 | + For checking if a file exists use |filereadable()|. |
| 3401 | + |
| 3402 | + The {expr} argument is a string, which contains one of these: |
3398 | 3403 | &option-name Vim option (only checks if it exists, |
3399 | 3404 | not if it really works) |
3400 | 3405 | +option-name Vim option that works. |
@@ -3442,7 +3447,6 @@ exists({expr}) The result is a Number, which is |TRUE| if {expr} is |
3442 | 3447 | event and pattern. |
3443 | 3448 | ##event autocommand for this event is |
3444 | 3449 | supported. |
3445 | | - For checking for a supported feature use |has()|. |
3446 | 3450 |
|
3447 | 3451 | Examples: > |
3448 | 3452 | exists("&shortname") |
@@ -5476,7 +5480,8 @@ matchadd({group}, {pattern}[, {priority}[, {id}[, {dict}]]]) |
5476 | 5480 | available from |getmatches()|. All matches can be deleted in |
5477 | 5481 | one operation by |clearmatches()|. |
5478 | 5482 |
|
5479 | | -matchaddpos({group}, {pos}[, {priority}[, {id}[, {dict}]]]) *matchaddpos()* |
| 5483 | + *matchaddpos()* |
| 5484 | +matchaddpos({group}, {pos}[, {priority}[, {id}[, {dict}]]]) |
5480 | 5485 | Same as |matchadd()|, but requires a list of positions {pos} |
5481 | 5486 | instead of a pattern. This command is faster than |matchadd()| |
5482 | 5487 | because it does not require to handle regular expressions and |
@@ -7536,6 +7541,23 @@ test_settime({expr}) *test_settime()* |
7536 | 7541 | {expr} must evaluate to a number. When the value is zero the |
7537 | 7542 | normal behavior is restored. |
7538 | 7543 |
|
| 7544 | + *timer_info()* |
| 7545 | +timer_info([{id}]) |
| 7546 | + Return a list with information about timers. |
| 7547 | + When {id} is given only information about this timer is |
| 7548 | + returned. When timer {id} does not exist an empty list is |
| 7549 | + returned. |
| 7550 | + When {id} is omitted information about all timers is returned. |
| 7551 | + |
| 7552 | + For each timer the information is stored in a Dictionary with |
| 7553 | + these items: |
| 7554 | + "id" the timer ID |
| 7555 | + "time" time the timer was started with |
| 7556 | + "remaining" time until the timer fires |
| 7557 | + "repeat" number of times the timer will still fire; |
| 7558 | + -1 means forever |
| 7559 | + "callback" the callback |
| 7560 | + |
7539 | 7561 | *timer_start()* |
7540 | 7562 | timer_start({time}, {callback} [, {options}]) |
7541 | 7563 | Create a timer and return the timer ID. |
@@ -7566,7 +7588,7 @@ timer_start({time}, {callback} [, {options}]) |
7566 | 7588 | timer_stop({timer}) *timer_stop()* |
7567 | 7589 | Stop a timer. The timer callback will no longer be invoked. |
7568 | 7590 | {timer} is an ID returned by timer_start(), thus it must be a |
7569 | | - Number. |
| 7591 | + Number. If {timer} does not exist there is no error. |
7570 | 7592 |
|
7571 | 7593 | tolower({expr}) *tolower()* |
7572 | 7594 | The result is a copy of the String given, with all uppercase |
|
0 commit comments