comparison .chezmoitemplates/config.vim @ 580:23426c0f0e58

Disable clipboard config on windows
author zegervdv <zegervdv@me.com>
date Fri, 25 Mar 2022 10:39:02 +0100
parents 8b04d5ffd210
children ad5e870cd4b2
comparison
equal deleted inserted replaced
579:4e25c3d4470d 580:23426c0f0e58
318 318
319 function! SendOSCClipboard(lines, regtype) 319 function! SendOSCClipboard(lines, regtype)
320 call SendViaOSC52(join(a:lines, "\n")) 320 call SendViaOSC52(join(a:lines, "\n"))
321 endfunction 321 endfunction
322 322
323 let g:clipboard = { 323 if !s:windows
324 \ 'name': 'TMUX', 324 let g:clipboard = {
325 \ 'copy': { 325 \ 'name': 'TMUX',
326 \ '+': function('SendOSCClipboard'), 326 \ 'copy': {
327 \ '*': 'tmux load-buffer -', 327 \ '+': function('SendOSCClipboard'),
328 \ }, 328 \ '*': 'tmux load-buffer -',
329 \ 'paste': { 329 \ },
330 \ '+': 'tmux save-buffer -', 330 \ 'paste': {
331 \ '*': 'tmux save-buffer -', 331 \ '+': 'tmux save-buffer -',
332 \ }, 332 \ '*': 'tmux save-buffer -',
333 \ 'cache_enabled': 1, 333 \ },
334 \ } 334 \ 'cache_enabled': 1,
335 \ }
336 endif
335 " Load local vimrc 337 " Load local vimrc
336 if filereadable($HOME . '/.vimrc.local') 338 if filereadable($HOME . '/.vimrc.local')
337 source ~/.vimrc.local 339 source ~/.vimrc.local
338 endif 340 endif
339 341