I need to process text line by line in one buffer and append the processed text to another buffer in Vimscript.
I can do this by using buffer switching ex commands, but I suspect it will cause epilepsy-inducing screen flashing when the script runs and it is probably really inefficient to be rendering and re-rendering the buffer on the screen thousands and thousands of times.
Is there a way to append text to another buffer (other than the active buffer) without actually making the destination buffer active?