paste no yank

This commit is contained in:
jordanyono 2025-09-19 15:18:43 -04:00
parent cd9f5a7eb1
commit 3fb64a9be1
1 changed files with 4 additions and 0 deletions

View File

@ -213,6 +213,10 @@ vim.keymap.set('n', '<leader>tf', ':ToggleTerm<CR>', { desc = 'Toggle floating t
vim.opt.number = true
vim.opt.relativenumber = true
-- paste does not yank in visual mode
-- Make Visual mode paste not clobber the default register
vim.keymap.set('x', 'p', '"_dP', { noremap = true, silent = true })
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`