I am familiar with the y
, p
method of copying and pasting a line within Vim; however, I have been unsuccessful in finding a straight forward method for copying multiple lines which have been yanked in visual mode.
the idea would be:
Shift + v
down arrow n times
y
:q!
open new file, or switch buffer
p
When yanking with visual mode, it will copy the first line of the yanked block to your Registers in .viminfo
, but nothing else
I would assume you need to create an instance of a clipboard which is global to all sessions of vim attached to a specific user, but I am not well versed enough in Vim to code this up myself.
edit:
As it would appear, I made a mistake in my approach. Using Shift
+v
is the prescribed method to use when copying and pasting between sessions. Thanks for the help @Doorknob
"+y
and paste it into which ever other application (vim included) you want.