What is the command to copy all the contents to the system clipboard from a file open in an instance of the vi editor on a remote server, accessed via SSH. Also, what is the shortcut for pasting from system clipboard to vi.
UPDATE: it became clear that vipin8169 runs vim on a remote server -- naturally, the vim over there does not have access to the clipboard of the local workstation, so the answer below is not applicable.
Everything you yank from now on will be copied to the clipboard, so to copy the whole file, do
Also, whenever you copy something from now on, you will be able to paste it with the regular
|show 8 more comments|
This question cannot be answered in a simple way, but here you will find a very good tutorial.