I'm editing a file in vim on a remote machine via ssh and I want to copy text out of the remote file and paste it into a vim instance running on my local machine. Is there an easy way to do this? I can use my terminal emulator's selection features to select text that is currently on the screen, but if my selection is larger than can fit on the screen, I'm out of luck.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
Open the remote file in the local vim session:
|
|||
|
|
|
If you have sufficient permissions on the remote machine, you can add
to /etc/ssh/sshd_config and restart sshd with
Then on your local machine add
to your ~/.ssh/config file Then by running an X-aware vim on the remote machine (e.g., Edit I forgot to include the part about setting |
||||
|
|