Created
July 10, 2025 06:14
-
-
Save partrita/6f7a8b6a36355ca09664e4762cb63da1 to your computer and use it in GitHub Desktop.
ssh로 접속하고 nvim을 사용할때 copy and paste
This file contains hidden or 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
vim.o.clipboard = "unnamedplus" | |
local function paste() | |
return { | |
vim.fn.split(vim.fn.getreg(""), "\n"), | |
vim.fn.getregtype(""), | |
} | |
end | |
vim.g.clipboard = { | |
name = "OSC 52", | |
copy = { | |
["+"] = require("vim.ui.clipboard.osc52").copy("+"), | |
["*"] = require("vim.ui.clipboard.osc52").copy("*"), | |
}, | |
paste = { | |
["+"] = paste, | |
["*"] = paste, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment