gsiano / vmux-clipboard

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>
         map <silent> <leader>p :ReadFromVmuxClipboard<cr>
      

REQUIREMENTS

  • vim compiled with either +python or +python3
    • check with vim --version | grep python

About

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


Languages

Language:Vim Script 66.8%Language:Python 33.2%