provider/clipboard: add tmux support (#6894)

This commit is contained in:
Xu Cheng 2017-06-15 15:15:56 +08:00 committed by Justin M. Keyes
parent 7918845215
commit 6efe84af68
1 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,12 @@ function! provider#clipboard#Executable() abort
let s:copy['*'] = s:copy['+']
let s:paste['*'] = s:paste['+']
return 'win32yank'
elseif exists('$TMUX') && executable('tmux')
let s:copy['+'] = 'tmux load-buffer -'
let s:paste['+'] = 'tmux save-buffer -'
let s:copy['*'] = s:copy['+']
let s:paste['*'] = s:paste['+']
return 'tmux'
endif
let s:err = 'clipboard: No clipboard tool available. :help clipboard'