vim I can write a range of lines from the file I'm viewing to another file. For example,
:1,10 w outfile.txt
will write lines 1 through 10 to outfile.txt.
Can I do the same while I'm viewing a file using