use wsl clipboard manager from help

This commit is contained in:
Oliver Hartmann 2023-01-24 17:53:34 +01:00
parent 9e8672038e
commit 7f00267ec8

View File

@ -38,12 +38,12 @@ if vim.fn.has("wsl") == 1 then
vim.g.clipboard = {
name = 'WslClipboard',
copy = {
['+'] = 'win32yank.exe -i --crlf',
['*'] = 'win32yank.exe -i --crlf',
},
['+'] = 'clip.exe',
['*'] = 'clip.exe',
},
paste = {
['+'] = 'win32yank.exe -o --lf',
['*'] = 'win32yank.exe -o --lf',
['+'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
['*'] = 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
},
cache_enabled = 0,
}