From 0b62cac365c1513fa92f57ce5fd21ace5aea1f0f Mon Sep 17 00:00:00 2001 From: Jason Stentz Date: Sat, 22 Nov 2025 18:41:43 -0500 Subject: [PATCH] adding ability to paste without clobbering buffer --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index b05c8016..e22dc10b 100644 --- a/init.lua +++ b/init.lua @@ -24,6 +24,9 @@ vim.o.mouse = 'a' -- Don't show the mode, since it's already in the status line vim.o.showmode = false +-- Allow pasting without clobbering the buffer +vim.keymap.set('x', 'p', '"_dP') + -- Sync clipboard between OS and Neovim. -- Schedule the setting after `UiEnter` because it can increase startup-time. -- Remove this option if you want your OS clipboard to remain independent.