I don't see it, but it would be great to have a

setbufline( {expr}, {lnum}, {end}, {line} )

where you could set lines in a buffer without having to switch/load it, where

{expr} is the buffer
{lnum} is the starting line
{end} is the ending line, or maybe a line count
{line} is the line or List

This would also kill two birds with one stone:  removing lines from a
buffer that isn't the current.

Reply via email to