From bd4c7174ee73f31ae9ce2a9581a69015f8d7463d Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 13 Oct 2024 10:09:42 +1300 Subject: [PATCH] more useful keybinds --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index af7d881e..ac7b2f1e 100644 --- a/init.lua +++ b/init.lua @@ -193,6 +193,12 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- Centre screen when scrolling with Ctrl-d and Ctrl-u vim.keymap.set('n', '', 'zz', { desc = 'Scroll [D]own one half screen' }) vim.keymap.set('n', '', 'zz', { desc = 'Scroll [U]p one half screen' }) +-- Paste without replacing the contents of the paste register +vim.keymap.set({ 'n', 'x' }, 'p', '"_dP', { desc = '[P]aste without replacing the paste register' }) + +-- Remove s as a binding so I can see the tooltip +vim.keymap.set('n', 's', '') + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands`