provider/clipboard: add tmux support (#6894)
This commit is contained in:
parent
7918845215
commit
6efe84af68
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue