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
While editing the file, make marks where you want the start and end to be using
ma - sets the a mark
ma
a
mb - sets the b mark
mb
b
Then, to copy that into another file, just use the w command:
w
:'a,'bw /name/of/output/file.txt