From 90b7487a41ac0f2b5dd1705ce3c306b349fe7469 Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Tue, 27 May 2025 11:54:47 -0700 Subject: [PATCH] fix: yank into system clipboard for n and v modes --- lua/keybinds.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/keybinds.lua b/lua/keybinds.lua index 7c9a52f..e8a7ec9 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -15,7 +15,8 @@ vim.keymap.set("n", "N", "Nzzzv", {}) vim.keymap.set("x", "p", "\"_dP", {}) -- Yank into system clipboard -vim.keymap.set("n", "y", "\"+y", {}) +vim.keymap.set("n", "y", "\"*y", {}) +vim.keymap.set("v", "y", "\"*y", {}) -- Like ciw on the text under the cursor vim.keymap.set("n", "s", [[:%s/\<\>//gI]])