.
This commit is contained in:
@@ -298,10 +298,18 @@
|
|||||||
else
|
else
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
if g:isWSL
|
if g:isWSL
|
||||||
augroup Yank
|
" will cause freezing of vim, not sure why
|
||||||
autocmd!
|
" function CopyToWin(timer)
|
||||||
autocmd TextYankPost * :call system('/mnt/c/windows/system32/clip.exe ',@")
|
" try
|
||||||
augroup END
|
" call system('/mnt/c/windows/system32/clip.exe ',@")
|
||||||
|
" catch
|
||||||
|
" endtry
|
||||||
|
" endfunction
|
||||||
|
" augroup Yank
|
||||||
|
" autocmd!
|
||||||
|
" " autocmd TextYankPost * :call system('/mnt/c/windows/system32/clip.exe ',@")
|
||||||
|
" autocmd TextYankPost * let _ = timer_start(0, 'CopyToWin', { 'repeat': 1 })
|
||||||
|
" augroup END
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user