sponsor Vim development Vim logo Vim Book Ad

tmpclip.vim : Use a temp file as a clipboard

 script karma  Rating 5/4, Downloaded by 504  Comments, bugs, improvements  Vim wiki

created by
Ryan Gies
 
script type
utility
 
description
This allows copy/paste from one vim session to another outside of a window manager. In my case, I have muliple PuTTY windows, each running screen, where many screens have an instance of vim.

Provides two convenience commands: `TmpClipWrite` and `TmpClipRead` which work with the default (") register. Implementing functions are `tmpClipWrite` and `tmpClipRead` which accept the register as an argument.

Sample usage:

  Vim instance #1 (source)
    
    yy                - Yank [copy] the current line
    :TmpClipWrite     - Write it to ~/.tmpclip

  Vim instance #2 (destination)

    :TmpClipRead      - Read ~/.tmpclip
    p                 - Put [paste] it
 
install details
~/.vim/plugin/tmpclip.vim
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tmpclip.vim 1.0 2012-02-24 7.0 Ryan Gies Initial upload
ip used for rating: 18.216.83.240

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github