From f043f923bd97257bfb17e267a8781a2046012bf2 Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Sat, 30 Dec 2023 22:35:05 -0800 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]])