@@ -1846,6 +1846,7 @@ delete( {fname} [, {flags}]) Number delete the file or directory {fname}
18461846did_filetype() Number TRUE if FileType autocommand event used
18471847diff_filler( {lnum} ) Number diff filler lines about {lnum}
18481848diff_hlID( {lnum} , {col} ) Number diff highlighting at {lnum} /{col}
1849+ disable_char_avail_for_testing({expr} ) none test without typeahead
18491850empty( {expr} ) Number TRUE if {expr} is empty
18501851escape( {string} , {chars} ) String escape {chars} in {string} with '\'
18511852eval( {string} ) any evaluate {string} into its value
@@ -1952,14 +1953,14 @@ invert( {expr}) Number bitwise invert
19521953isdirectory( {directory} ) Number TRUE if {directory} is a directory
19531954islocked( {expr} ) Number TRUE if {expr} is locked
19541955items( {dict} ) List key-value pairs in {dict}
1955- job_start({command} [, {options} ]) Job start a job
1956- job_status({job} ) String get the status of a job
1957- job_stop({job} [, {how} ]) Number stop a job
1956+ job_start( {command} [, {options} ]) Job start a job
1957+ job_status( {job} ) String get the status of a job
1958+ job_stop( {job} [, {how} ]) Number stop a job
19581959join( {list} [, {sep} ]) String join {list} items into one String
1959- jsdecode ( {string} ) any decode JS style JSON
1960- jsencode ( {expr} ) String encode JS style JSON
1961- jsondecode ( {string} ) any decode JSON
1962- jsonencode ( {expr} ) String encode JSON
1960+ js_decode ( {string} ) any decode JS style JSON
1961+ js_encode ( {expr} ) String encode JS style JSON
1962+ json_decode ( {string} ) any decode JSON
1963+ json_encode ( {expr} ) String encode JSON
19631964keys( {dict} ) List keys in {dict}
19641965len( {expr} ) Number the length of {expr}
19651966libcall( {lib} , {func} , {arg} ) String call {func} in library {lib} with {arg}
@@ -2733,8 +2734,9 @@ copy({expr}) Make a copy of {expr}. For Numbers and Strings this isn't
27332734 When {expr} is a | List | a shallow copy is created. This means
27342735 that the original | List | can be changed without changing the
27352736 copy, and vice versa. But the items are identical, thus
2736- changing an item changes the contents of both | Lists | . Also
2737- see | deepcopy() | .
2737+ changing an item changes the contents of both | Lists | .
2738+ A | Dictionary | is copied in a similar way as a | List | .
2739+ Also see | deepcopy() | .
27382740
27392741cos({expr} ) *cos()*
27402742 Return the cosine of {expr} , measured in radians, as a | Float | .
@@ -4386,30 +4388,30 @@ join({list} [, {sep}]) *join()*
43864388 converted into a string like with | string() | .
43874389 The opposite function is | split() | .
43884390
4389- jsdecode ({string} ) *jsdecode ()*
4390- This is similar to | jsondecode ()| with these differences:
4391+ js_decode ({string} ) *js_decode ()*
4392+ This is similar to | json_decode ()| with these differences:
43914393 - Object key names do not have to be in quotes.
43924394 - Empty items in an array (between two commas) are allowed and
43934395 result in v:none items.
43944396
4395- jsencode ({expr} ) *jsencode ()*
4396- This is similar to | jsonencode ()| with these differences:
4397+ js_encode ({expr} ) *js_encode ()*
4398+ This is similar to | json_encode ()| with these differences:
43974399 - Object key names are not in quotes.
43984400 - v:none items in an array result in an empty item between
43994401 commas.
44004402 For example, the Vim object:
4401- [1,v:none,{"one":1}] ,v:none ~
4403+ [1,v:none,{"one":1},v:none] ~
44024404 Will be encoded as:
44034405 [1,,{one:1},,] ~
4404- While jsonencode () would produce:
4406+ While json_encode () would produce:
44054407 [1,null,{"one":1},null] ~
44064408 This encoding is valid for JavaScript. It is more efficient
44074409 than JSON, especially when using an array with optional items.
44084410
44094411
4410- jsondecode ({string} ) *jsondecode ()*
4412+ json_decode ({string} ) *json_decode ()*
44114413 This parses a JSON formatted string and returns the equivalent
4412- in Vim values. See | jsonencode ()| for the relation between
4414+ in Vim values. See | json_encode ()| for the relation between
44134415 JSON and Vim values.
44144416 The decoding is permissive:
44154417 - A trailing comma in an array and object is ignored.
@@ -4419,7 +4421,7 @@ jsondecode({string}) *jsondecode()*
44194421 - An empty object member name is not allowed.
44204422 - Duplicate object member names are not allowed.
44214423
4422- jsonencode ({expr} ) *jsonencode ()*
4424+ json_encode ({expr} ) *json_encode ()*
44234425 Encode {expr} as JSON and return this as a string.
44244426 The encoding is specified in:
44254427 https://tools.ietf.org/html/rfc7159.html
0 commit comments