vim-tmux-clipboard


Ⅰ. 插件描述

seamless integration for vim and tmux's clipboard

Ⅱ. 基本信息

创建日期:  2016-07-29
使用用户:  120
Github星:  172
插件作者:  rox

Ⅲ. 安装方法

使用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

  1. It also makes multiple vim processes on top of the same tmux session
  2. like they're sharing the same clipboard.

Requirements

  • add set -g focus-events on to your tmux.conf.
  • vim-tmux-focus-events for vim users.
  • 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`.

Demo

asciicast

添加新评论