I am working with two files, and I need to copy a few lines from one file and paste into another file. I know how to copy (yy) and paste (p) in the same file. But that doesn
Enter command mode and run
:r! sed -n ', p' file_to_extract_text_from
E.g to extract lines 20-30 from filename into the currently opened file
20-30
filename
:r! sed -n '20, 30p' filename