Tip #71: Transfer text between two gvim sessions using clipboard
tip karma |
Rating 24/15, Viewed by 2188
|
created: |
|
June 4, 2001 11:14 |
|
complexity: |
|
basic |
author: |
|
Alexey Marinichev |
|
as of Vim: |
|
5.7 |
If you use gvim, you can transfer text from one instance of gvim into another one using clipboard. It is convenient to use * (star) register, like this:
In one instance yank two lines into clipboard:
"*2yy
Paste it in another instance in normal mode:
"*p
or in insert mode:
<Ctrl-R>*
<<running a command on all buffers |
Remove unwanted empty lines >>
Additional Notes
|