1- *eval.txt* For Vim version 7.4. Last change: 2016 Mar 15
1+ *eval.txt* For Vim version 7.4. Last change: 2016 Mar 20
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -753,7 +753,12 @@ recursively. Ignoring case means case is ignored when comparing item values.
753753
754754 *E693* *E694*
755755A | Funcref | can only be compared with a | Funcref | and only "equal" and "not
756- equal" can be used. Case is never ignored.
756+ equal" can be used. Case is never ignored. Whether arguments or a Dictionary
757+ are bound (with a partial) is ignored. This is so that when a function is
758+ made a member of a Dictionary it is still considered to be the same function.
759+ To compare partials to see if they bind the same argument and Dictionary
760+ values use string(): >
761+ echo string(Partial1) == string(Partial2)
757762
758763 When using "is" or "isnot" with a | List | or a | Dictionary | this checks if the
759764expressions are referring to the same | List | or | Dictionary | instance. A copy
@@ -1822,6 +1827,7 @@ ch_evalraw( {handle}, {string} [, {options}])
18221827 any evaluate {string} on raw {handle}
18231828ch_getbufnr( {handle} , {what} ) Number get buffer number for {handle} /{what}
18241829ch_getjob( {channel} ) Job get the Job of {channel}
1830+ ch_info( {handle} ) String info about channel {handle}
18251831ch_log( {msg} [, {handle} ]) none write {msg} in the channel log file
18261832ch_logfile( {fname} [, {mode} ]) none start logging channel activity
18271833ch_open( {address} [, {options} ]) Channel open a channel to {address}
@@ -1832,7 +1838,7 @@ ch_sendexpr( {handle}, {expr} [, {options}])
18321838ch_sendraw( {handle} , {string} [, {options} ])
18331839 any send {string} over raw {handle}
18341840ch_setoptions( {handle} , {options} ) none set options for {handle}
1835- ch_status( {handle} ) String status of {handle}
1841+ ch_status( {handle} ) String status of channel {handle}
18361842changenr() Number current change number
18371843char2nr( {expr} [, {utf8} ]) Number ASCII/UTF8 value of first char in {expr}
18381844cindent( {lnum} ) Number C indent for line {lnum}
@@ -2759,6 +2765,32 @@ ch_getjob({channel}) *ch_getjob()*
27592765 {only available when compiled with the | +channel | and
27602766 | +job | features}
27612767
2768+ ch_info({handle} ) *ch_info()*
2769+ Returns a Dictionary with information about {handle} . The
2770+ items are:
2771+ "id" number of the channel
2772+ "status" "open" (any part is open) or "closed"
2773+ When opened with ch_open():
2774+ "hostname" the hostname of the address
2775+ "port" the port of the address
2776+ "sock_status" "open" or "closed"
2777+ "sock_mode" "NL", "RAW", "JSON" or "JS"
2778+ "sock_io" "socket"
2779+ "sock_timeout" timeout in msec
2780+ When opened with job_start():
2781+ "out_status" "open" or "closed"
2782+ "out_mode" "NL", "RAW", "JSON" or "JS"
2783+ "out_io" "null", "pipe", "file" or "buffer"
2784+ "out_timeout" timeout in msec
2785+ "err_status" "open" or "closed"
2786+ "err_mode" "NL", "RAW", "JSON" or "JS"
2787+ "err_io" "out", "null", "pipe", "file" or "buffer"
2788+ "err_timeout" timeout in msec
2789+ "in_status" "open" or "closed"
2790+ "in_mode" "NL", "RAW", "JSON" or "JS"
2791+ "in_io" "null", "pipe", "file" or "buffer"
2792+ "in_timeout" timeout in msec
2793+
27622794ch_log({msg} [, {handle} ]) *ch_log()*
27632795 Write {msg} in the channel log file, if it was opened with
27642796 | ch_logfile() | .
@@ -3594,6 +3626,18 @@ function({name} [, {arglist}] [, {dict}])
35943626< Invokes the function as with: >
35953627 call Callback('one', 'two', 'name')
35963628
3629+ < The function() call can be nested to add more arguments to the
3630+ Funcref. The extra arguments are appended to the list of
3631+ arguments. Example: >
3632+ func Callback(arg1, arg2, name)
3633+ ...
3634+ let Func = function('Callback', ['one'])
3635+ let Func2 = function(Func, ['two'])
3636+ ...
3637+ call Func2('name')
3638+ < Invokes the function as with: >
3639+ call Callback('one', 'two', 'name')
3640+
35973641< The Dictionary is only useful when calling a "dict" function.
35983642 In that case the {dict} is passed in as "self". Example: >
35993643 function Callback() dict
@@ -7050,6 +7094,10 @@ timer_start({time}, {callback} [, {options}])
70507094 intervals.
70517095 {only available when compiled with the | +timers | feature}
70527096
7097+ timer_stop({timer} ) *timer_stop()*
7098+ Stop a timer. {timer} is an ID returned by timer_start().
7099+ The timer callback will no longer be invoked.
7100+
70537101tolower({expr} ) *tolower()*
70547102 The result is a copy of the String given, with all uppercase
70557103 characters turned into lowercase (just like applying | gu | to
0 commit comments