Ⅰ. 插件描述
seamless integration for vim and tmux's clipboardⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'roxma/vim-tmux-clipboard'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'roxma/vim-tmux-clipboard'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'roxma/vim-tmux-clipboard'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/roxma/vim-tmux-clipboard
Ⅳ. 文档说明
# 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
- It also makes multiple vim processes on top of the same tmux session
- like they're sharing the same clipboard.
Requirements
- add
set -g focus-events onto yourtmux.conf. - vim-tmux-focus-events for vim users.
- neovim or vim above 8.0.1394 is
recommended forTextYankPostevent, 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`.
