https://github.com/frimik/vim-winclipper
Get contents from your Linux VM vim register into your host Windows Clipboard
https://github.com/frimik/vim-winclipper
Last synced: 3 months ago
JSON representation
Get contents from your Linux VM vim register into your host Windows Clipboard
- Host: GitHub
- URL: https://github.com/frimik/vim-winclipper
- Owner: frimik
- License: mit
- Created: 2015-01-29T09:47:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-18T15:24:13.000Z (over 9 years ago)
- Last Synced: 2025-01-20T07:13:18.394Z (4 months ago)
- Language: Python
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## About
Simple hack to get vim register (clipboard) data from vim in your Linux VM to your Windows Clipboard on your Host.
## How it works
After you yank something in vim, you can use the command `:WriteRegister` to write a file to your `/vagrant` share as `/vagrant/vimregister.txt` ..., then a persistant python process on your windows host (that you need to start yourself) like `python clipper.py ~/vimregister.txt` listens to filesystem events on that particular file and smashes it into your windows clipboard...
## Usage
If you're on a *Windows Host* and you use a *Vagrant VM* with Linux on it, this might be for you... any other setup? All bets are off ...
### Windows Host
On the windows host, clone this repository and run:
pip install -r requirements.txt
clipper.py ~/vimregister.txt
or as appropriate depending on what shell you're using.Obviously, this requires python on your Windows host...
Oh, and it might fail or just not be as "informative" unless you install [Growl for Windows](http://www.growlforwindows.com/gfw/). If you try this without Growl, Let me know, will ya?
If you do use Growl you will get a desktop notification telling you how many characters were just copied to your clipboard ...### Linux VM
If you're using [Vundle](https://github.com/gmarik/Vundle.vim), add to your `.vimrc` on your Linux VM and run `:PluginInstall`
Plugin 'frimik/vim-winclipper', {'rtp': 'vim/'}
Restart or reload your vimrc. (y)ank something into your default (") register (Just pressing 'yy'), followed by the command `:WriteRegister`. This should write what you yanked into `/vagrant/vimregister.txt` and the `clipper.py` process should pick it up ...