(1)
:230,$w newfile
Saves from line 230 to end of file in newfile.:.,600w newfile
Saves from the current line to line 600 in newfile.
(2)
:1,10w newfile
and then:
:340,$w >>newfile
newfile would contain lines 1–10 and from line 340 to the end of the buffer.