Here is the scenario:
I am working in screen and I have multiple screen sessions running.  I
want to copy the selected text from one vim session to a vim session
that is in another screen session.

Here is the code I have come up with so far:
--------------------------
function GlobalRegisterYank()
    :'<,'>w! $HOME/.vim/yankbuffer
endfunction

function GlobalRegisterPut()
    :execute "read " . $HOME . "/.vim/yankbuffer"
endfunction

vmap q :call GlobalRegisterYank()<CR>
vmap Q :call GlobalRegisterPut()<CR>
--------------------------

I am using "'<,'>w! $HOME/.vim/yankbuffer" to try to save the selected
text but it instead saves all the contents of the selected lines.  How
can I make it so I only save the selected lines?

If there is already a vim feature or plugin out there already
accomplishing this type of goal, then you can just point me in that
direction too.

cheers-
Clayton

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to