문제

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