fix: yank into system clipboard for n and v modes

This commit is contained in:
Devin Haska 2023-12-30 22:35:05 -08:00
parent c08291b5b2
commit f043f923bd

View file

@ -15,7 +15,8 @@ vim.keymap.set("n", "N", "Nzzzv", {})
vim.keymap.set("x", "<Leader>p", "\"_dP", {})
-- Yank into system clipboard
vim.keymap.set("n", "<Leader>y", "\"+y", {})
vim.keymap.set("n", "<Leader>y", "\"*y", {})
vim.keymap.set("v", "<Leader>y", "\"*y", {})
-- Like ciw on the text under the cursor
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])