You can also do :r filename
This will pull the file. It can also be used to output the command:
:r! grep some_text file :r! which perl
Another way is to use buffers.
:e other_file.txt
Once you hold, you can :bn switch to another buffer and paste
If you're just concerned about pasting, ctrl-v or shift + insert also works to paste the contents of the clipboard.
source share