Skip to content

Commit bd4c717

Browse files
committed
more useful keybinds
1 parent 30a23e4 commit bd4c717

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
193193
-- Centre screen when scrolling with Ctrl-d and Ctrl-u
194194
vim.keymap.set('n', '<C-d>', '<C-d>zz', { desc = 'Scroll [D]own one half screen' })
195195
vim.keymap.set('n', '<C-u>', '<C-u>zz', { desc = 'Scroll [U]p one half screen' })
196+
-- Paste without replacing the contents of the paste register
197+
vim.keymap.set({ 'n', 'x' }, '<leader>p', '"_dP', { desc = '[P]aste without replacing the paste register' })
198+
199+
-- Remove s as a binding so I can see the tooltip
200+
vim.keymap.set('n', 's', '<nop>')
201+
196202
-- [[ Basic Autocommands ]]
197203
-- See `:help lua-guide-autocommands`
198204

0 commit comments

Comments
 (0)