Skip to content

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

Notifications You must be signed in to change notification settings

gsiano/vmux-clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published