|
1 | | -*eval.txt* For Vim version 8.2. Last change: 2021 Jan 22 |
| 1 | +*eval.txt* For Vim version 8.2. Last change: 2021 Jan 31 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -293,13 +293,13 @@ is not available it returns zero or the default value you specify: > |
293 | 293 |
|
294 | 294 |
|
295 | 295 | List concatenation ~ |
296 | | - |
| 296 | + *list-concatenation* |
297 | 297 | Two lists can be concatenated with the "+" operator: > |
298 | 298 | :let longlist = mylist + [5, 6] |
299 | 299 | :let mylist += [7, 8] |
300 | 300 |
|
301 | | -To prepend or append an item turn the item into a list by putting [] around |
302 | | -it. To change a list in-place see |list-modification| below. |
| 301 | +To prepend or append an item, turn the item into a list by putting [] around |
| 302 | +it. To change a list in-place, refer to |list-modification| below. |
303 | 303 |
|
304 | 304 |
|
305 | 305 | Sublist ~ |
@@ -3145,6 +3145,7 @@ append({lnum}, {text}) *append()* |
3145 | 3145 | text line below line {lnum} in the current buffer. |
3146 | 3146 | Otherwise append {text} as one text line below line {lnum} in |
3147 | 3147 | the current buffer. |
| 3148 | + Any type of item is accepted and converted to a String. |
3148 | 3149 | {lnum} can be zero to insert a line before the first one. |
3149 | 3150 | Returns 1 for failure ({lnum} out of range or out of memory), |
3150 | 3151 | 0 for success. Example: > |
@@ -9421,6 +9422,8 @@ setline({lnum}, {text}) *setline()* |
9421 | 9422 | {lnum} is used like with |getline()|. |
9422 | 9423 | When {lnum} is just below the last line the {text} will be |
9423 | 9424 | added below the last line. |
| 9425 | + {text} can be any type or a List of any type, each item is |
| 9426 | + converted to a String. |
9424 | 9427 |
|
9425 | 9428 | If this succeeds, FALSE is returned. If this fails (most likely |
9426 | 9429 | because {lnum} is invalid) TRUE is returned. |
|
0 commit comments