Question

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 "

No correct solution

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top