I use Putty to connect to a server and I use 2 sessions, because I want to compare 2 .sh files and I find it easier to have both files on different windows.
I am using VIM as a text editor and want to yank a line from the file of the first session to the file of the second session.
I am using V"+y
to yank and then p
to paste, but it only works if I close the file in the current session and open the other file in the same session.
Is it even possible to yank text from one session and paste it in another?
question from:
https://stackoverflow.com/questions/65713814/yank-text-from-vim-editor-from-one-session-to-another-session 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…