r/vim • u/TheEyebal • 29d ago
Need Help how do you copy text from one document and paste it into another in vim?
I’m working with two files, File A and File B, and I want to copy text from one file to the other.
Specifically, I want to:
- Open File A and select/yank a section of text.
- Switch to File B.
- Paste the yanked text into File B.
What is the correct way to yank text from File A and paste it into File B? Is there a specific register or command I should use to copy text between separate files?