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
Use the variations of d like dd to cut.
d
dd
To write a range of lines to another file you can use:
:, w filename
Where and are numbers (or symbols) that designate a range of lines.
For using the desktop clipboard, take a look at the +g commands.
+g