Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roxma/vim-tmux-clipboard
seamless integration for vim and tmux's clipboard
https://github.com/roxma/vim-tmux-clipboard
neovim tmux-clipboard vim
Last synced: about 7 hours ago
JSON representation
seamless integration for vim and tmux's clipboard
- Host: GitHub
- URL: https://github.com/roxma/vim-tmux-clipboard
- Owner: roxma
- License: mit
- Created: 2016-07-29T14:11:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-23T03:37:15.000Z (over 1 year ago)
- Last Synced: 2024-08-07T18:47:28.244Z (3 months ago)
- Topics: neovim, tmux-clipboard, vim
- Language: Vim Script
- Homepage:
- Size: 14.6 KB
- Stars: 286
- Watchers: 10
- Forks: 24
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-tmux-clipboard
Things get messy when I need to copy lines of text from vim into tmux's
clipboard, especially when multiple split-windows are opened. So I created this
super simple plugin, which provides seamless integration for vim and tmux's
clipboard.vim-tmux-clipboard automatically copy yanked text into tmux's clipboard, and
copy tmux's clipboard content into vim's quote(`"`) register, known as the unnamed
register. It also makes multiple vim processes on top of the same tmux session
act like they're sharing the same clipboard.## Requirements
- add `set -g focus-events on` to your `tmux.conf`.
- [vim-tmux-focus-events](https://github.com/tmux-plugins/vim-tmux-focus-events) for vim users.
- [neovim](https://github.com/neovim/neovim) or vim above 8.0.1394 is
recommended for `TextYankPost` event, which is required for `It also makes
multiple vim processes on top of the same tmux session act like they're
sharing the same clipboard`.## Options
- `g:vim_tmux_clipboard#loadb_option` see [#20](https://github.com/roxma/vim-tmux-clipboard/pull/20)
## Demo
[![asciicast](https://asciinema.org/a/7qzb7c12ykv3kcleo4jgrl2jy.png)](https://asciinema.org/a/7qzb7c12ykv3kcleo4jgrl2jy)