Here are steps:
- Open the file you need to edit
- :sp /path/to/the/file/... and open the file that you need to copy from (this will split the window and open the other file in top section)
- Locate the lines you want to copy. If it 10 lines type 10yy
- Move to the other file using CTRL+ws
- Figure out where you need to paste the yanked lines type p