ZM moves one or more lines out of the current buffer and into (bufname). Unlike the M command, ZM does not destroy the contents of (bufname). Instead, it appends the moved lines after the current line "." in (bufname).
If you do not specify an address, ZM moves the current line. If you specify one address, ZM moves that line instead. If you specify two addresses, ZM moves all the lines between and including the given lines. In this case, the first address must precede the second in the buffer. If (bufname) is the current buffer, the addressed lines cannot include ".".
ZM sets "." in (bufname) to the last line copied, and sets "." in the current buffer to the line immediately following the last line moved.
Copyright © 1998, Thinkage Ltd.