-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vimrc(nvim): remove oscyank in neovim, set osc 52 clipboard
- Loading branch information
1 parent
17e7078
commit 621290d
Showing
4 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if vim.fn.has('wsl') == 1 then | ||
vim.g.clipboard = { | ||
name = 'WslClipboard', | ||
copy = { ['+'] = 'clip.exe', ['*'] = 'clip.exe', }, | ||
paste = { | ||
['+'] = '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, | ||
} | ||
else | ||
vim.g.clipboard = { | ||
name = 'OSC 52', | ||
copy = { | ||
['+'] = require('vim.ui.clipboard.osc52').copy('+'), | ||
['*'] = require('vim.ui.clipboard.osc52').copy('*'), | ||
}, | ||
paste = { | ||
['+'] = require('vim.ui.clipboard.osc52').paste('+'), | ||
['*'] = require('vim.ui.clipboard.osc52').paste('*'), | ||
}, | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters