|
1 | | -*eval.txt* For Vim version 7.4. Last change: 2016 Mar 08 |
| 1 | +*eval.txt* For Vim version 7.4. Last change: 2016 Mar 12 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -113,16 +113,8 @@ to Float, printf() for Float to String and float2nr() for Float to Number. |
113 | 113 | *E891* *E892* *E893* *E894* *E907* *E911* *E914* |
114 | 114 | When expecting a Float a Number can also be used, but nothing else. |
115 | 115 |
|
116 | | - *E706* *sticky-type-checking* |
117 | | -You will get an error if you try to change the type of a variable. You need |
118 | | -to |:unlet| it first to avoid this error. String and Number are considered |
119 | | -equivalent though, as well are Float and Number. Consider this sequence of |
120 | | -commands: > |
121 | | - :let l = "string" |
122 | | - :let l = 44 " changes type from String to Number |
123 | | - :let l = [1, 2, 3] " error! l is still a Number |
124 | | - :let l = 4.4 " changes type from Number to Float |
125 | | - :let l = "string" " error! |
| 116 | + *no-type-checking* |
| 117 | +You will not get an error if you try to change the type of a variable. |
126 | 118 |
|
127 | 119 |
|
128 | 120 | 1.2 Function references ~ |
@@ -1969,6 +1961,7 @@ islocked( {expr}) Number TRUE if {expr} is locked |
1969 | 1961 | isnan( {expr}) Number TRUE if {expr} is NaN |
1970 | 1962 | items( {dict}) List key-value pairs in {dict} |
1971 | 1963 | job_getchannel( {job}) Channel get the channel handle for {job} |
| 1964 | +job_info( {job}) Dict get information about {job} |
1972 | 1965 | job_setoptions( {job}, {options}) none set options for {job} |
1973 | 1966 | job_start( {command} [, {options}]) Job start a job |
1974 | 1967 | job_status( {job}) String get the status of {job} |
@@ -4473,10 +4466,18 @@ job_getchannel({job}) *job_getchannel()* |
4473 | 4466 | < |
4474 | 4467 | {only available when compiled with the |+job| feature} |
4475 | 4468 |
|
| 4469 | +job_info({job}) *job_info()* |
| 4470 | + Returns a Dictionary with information about {job}: |
| 4471 | + "status" what |job_status()| returns |
| 4472 | + "channel" what |job_getchannel()| returns |
| 4473 | + "exitval" only valid when "status" is "dead" |
| 4474 | + "exit-cb" function to be called on exit |
| 4475 | + "stoponexit" |job-stoponexit| |
| 4476 | + |
4476 | 4477 | job_setoptions({job}, {options}) *job_setoptions()* |
4477 | 4478 | Change options for {job}. Supported are: |
4478 | | - "stoponexit" |job-stoponexit| |
4479 | | - "exit-cb" |job-exit-cb| |
| 4479 | + "stoponexit" |job-stoponexit| |
| 4480 | + "exit-cb" |job-exit-cb| |
4480 | 4481 |
|
4481 | 4482 | job_start({command} [, {options}]) *job_start()* |
4482 | 4483 | Start a job and return a Job object. Unlike |system()| and |
|
0 commit comments