How do you write a range of lines to a separate file? :10,20w newfile.txt Use :10,20w newfile. category: command-line tags: #command-line #write #range