1- *eval.txt* For Vim version 7.4. Last change: 2016 Aug 06
1+ *eval.txt* For Vim version 7.4. Last change: 2016 Aug 07
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1969,7 +1969,7 @@ assert_exception({error} [, {msg}]) none assert {error} is in v:exception
19691969assert_fails({cmd} [, {error} ]) none assert {cmd} fails
19701970assert_false({actual} [, {msg} ]) none assert {actual} is false
19711971assert_inrange({lower} , {upper} , {actual} [, {msg} ])
1972- none assert {actual} is inside the range
1972+ none assert {actual} is inside the range
19731973assert_match({pat} , {text} [, {msg} ]) none assert {pat} matches {text}
19741974assert_notequal({exp} , {act} [, {msg} ]) none assert {exp} is not equal {act}
19751975assert_notmatch({pat} , {text} [, {msg} ]) none assert {pat} not matches {text}
@@ -2340,9 +2340,11 @@ test_null_partial() Funcref null value for testing
23402340test_null_string() String null value for testing
23412341test_settime({expr} ) none set current time for testing
23422342timer_info([{id} ]) List information about timers
2343+ timer_pause({id} , {pause} ) none pause or unpause a timer
23432344timer_start({time} , {callback} [, {options} ])
23442345 Number create a timer
23452346timer_stop({timer} ) none stop a timer
2347+ timer_stopall() none stop all timers
23462348tolower({expr} ) String the String {expr} switched to lowercase
23472349toupper({expr} ) String the String {expr} switched to uppercase
23482350tr({src} , {fromstr} , {tostr} ) String translate chars of {src} in {fromstr}
@@ -7555,8 +7557,26 @@ timer_info([{id}])
75557557 "time" time the timer was started with
75567558 "remaining" time until the timer fires
75577559 "repeat" number of times the timer will still fire;
7558- -1 means forever
7560+ -1 means forever
75597561 "callback" the callback
7562+ "paused" 1 if the timer is paused, 0 otherwise
7563+
7564+ {only available when compiled with the | +timers | feature}
7565+
7566+ timer_pause({timer} , {paused} ) *timer_pause()*
7567+ Pause or unpause a timer. A paused timer does not invoke its
7568+ callback, while the time it would is not changed. Unpausing a
7569+ timer may cause the callback to be invoked almost immediately
7570+ if enough time has passed.
7571+
7572+ Pausing a timer is useful to avoid the callback to be called
7573+ for a short time.
7574+
7575+ If {paused} evaluates to a non-zero Number or a non-empty
7576+ String, then the timer is paused, otherwise it is unpaused.
7577+ See | non-zero-arg | .
7578+
7579+ {only available when compiled with the | +timers | feature}
75607580
75617581 *timer_start()*
75627582timer_start({time} , {callback} [, {options} ])
@@ -7583,13 +7603,23 @@ timer_start({time}, {callback} [, {options}])
75837603 \ {'repeat': 3})
75847604< This will invoke MyHandler() three times at 500 msec
75857605 intervals.
7606+
75867607 {only available when compiled with the | +timers | feature}
75877608
75887609timer_stop({timer} ) *timer_stop()*
75897610 Stop a timer. The timer callback will no longer be invoked.
75907611 {timer} is an ID returned by timer_start(), thus it must be a
75917612 Number. If {timer} does not exist there is no error.
75927613
7614+ {only available when compiled with the | +timers | feature}
7615+
7616+ timer_stopall() *timer_stopall()*
7617+ Stop all timers. The timer callbacks will no longer be
7618+ invoked. Useful if some timers is misbehaving. If there are
7619+ no timers there is no error.
7620+
7621+ {only available when compiled with the | +timers | feature}
7622+
75937623tolower({expr} ) *tolower()*
75947624 The result is a copy of the String given, with all uppercase
75957625 characters turned into lowercase (just like applying | gu | to
0 commit comments