vmux-clipboard


Ⅰ. 插件描述

vim plugin to allow copying between vim buffers in different tmux panes or windows

Ⅱ. 基本信息

创建日期:  2017-04-25
使用用户:  0
Github星:  4
插件作者:  Greg Siano

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'gsiano/vmux-clipboard'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'gsiano/vmux-clipboard'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'gsiano/vmux-clipboard'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/gsiano/vmux-clipboard

Ⅳ. 文档说明

ABOUT

vmux-clipboard is a vim plugin that enables yanking and pasting text between vim buffers across panes/windows of tmux, byobu, screen, and other terminal multiplexers

INSTALLATION

  • Using pathogen:

    • clone the vmux-clipboard repo into ~/.vim/bundle
    • make sure to include execute pathogen#infect() in your .vimrc
  • Manually:

    • put plugin/vmux_clipboard.vim into ~/.vim/plugin/ and py/vmux_clipboard.py into ~/.vim/py/

USAGE

  • running :WriteToVmuxClipboard will make your most recently yanked text available across multiplexer panes
  • running :ReadFromVmuxClipboard will make the text in your vmux-clipboard available in the " register, which can be put with p
  • add maps for the :WriteToVmuxClipboard and :ReadFromVmuxClipboard commands. Example:

    • yy + ,y in one pane, ,p + p in another:
    • let mapleader = ","
      map <silent> <leader>y :WriteToVmuxClipboard<cr>

REQUIREMENTS
------------
* `vim` compiled with either `+python` or `+python3`

添加新评论