diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-22 22:39:28 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-23 07:46:51 -0400 |
commit | 9358979d096a6bfde371bbca5c77f8d45a4de253 (patch) | |
tree | 5572ed3ba56cd16f915ddd4182943b2be3350a98 /runtime | |
parent | c6eb1f42bec06e92c2c5ee9a523af4e46ac05083 (diff) | |
download | rneovim-9358979d096a6bfde371bbca5c77f8d45a4de253.tar.gz rneovim-9358979d096a6bfde371bbca5c77f8d45a4de253.tar.bz2 rneovim-9358979d096a6bfde371bbca5c77f8d45a4de253.zip |
vim-patch:8.1.0037: cannot easily append lines to another buffer
Problem: Cannot easily append lines to another buffer.
Solution: Add appendbufline().
https://github.com/vim/vim/commit/ca851593a660f08aba5c134f90c238d4a3e983e6
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 5e8c5151f2..0418ab950c 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2495,6 +2495,21 @@ append({lnum}, {text}) *append()* 0 for success. Example: > :let failed = append(line('$'), "# THE END") :let failed = append(0, ["Chapter 1", "the beginning"]) + +appendbufline({expr}, {lnum}, {text}) *appendbufline()* + Like |append()| but append the text in buffer {expr}. + + For the use of {expr}, see |bufname()|. + + {lnum} is used like with |append()|. Note that using |line()| + would use the current buffer, not the one appending to. + Use "$" to append at the end of the buffer. + + On success 0 is returned, on failure 1 is returned. + + If {expr} is not a valid buffer or {lnum} is not valid, an + error message is given. Example: > + :let failed = appendbufline(13, 0, "# THE START") < *argc()* argc([{winid}]) |