Putty doesn’t support accessing the clipboard of a remote server, right? Are you using Windows? If it's Windows, there's nothing I can do about it. If it is Linux, use ssh -Y to turn on X11 forwarding.
The first option: Use xshell, select directly with the mouse The second option: Visual mode :'<'> w a.txt :sh sz a.txt exit The file is available locally
Putty doesn’t support accessing the clipboard of a remote server, right? Are you using Windows? If it's Windows, there's nothing I can do about it. If it is Linux, use ssh -Y to turn on X11 forwarding.
Can’t you just use the mouse to select and copy?
Just use xshell. This software is free for individuals.
Select directly with the mouse, then right-click to copy
The first option:
Use xshell, select directly with the mouse
The second option:
Visual mode
:'<'> w a.txt
:sh
sz a.txt
exit
The file is available locally
Add the following code to the
.vimrc
file.vimrc
文件之后使用
Then usey
rrreeey
to copy the selected content to the cut version.