- I am editing file 'A' in vi.
- I have another file 'B' whose contents I want to 'paste' into my current location.
- Other than actual mouse copy and pasting, is there a command that I can use that will pull in the content of another file to my current edit location.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||||
|
|
Type the following
This will paste the contents of the file after the line on which the cursor is present. If you need to copy/paste smaller range of lines/block of text from one file to other, you can also do the following assuming one file is opened in
|
||||
|
|
|
That |
|||
|
|