Steps to reproduce:

1) Open any file (example.txt).

2) Press v and select some lines.

3) Press y to yank them (also tried yy).

4) :q to quit.

5) Open any other file.

6) p to paste.

7) E353: Nothing in register "

没有正确的解决方案

其他提示

You need to use system's clipboard when pasting between separate vim instances. Try "+y to copy to the + register and "+p to paste from it. Depending on your OS, you might also try the * register if + does not seem to work.

Yank/paste buffer is not saved between runs of vim, at least by default. Instead do: y, then :split other-file, and paste it there.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top