vim: visual mode paste without loosing yanked text

This commit is contained in:
Fernando Schauenburg 2024-02-18 21:48:41 +01:00
parent 890d2def13
commit c924601769

View file

@ -82,6 +82,9 @@ M.setup = function()
-- quickly change background -- quickly change background
map('n', '<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]]) map('n', '<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]])
-- don't loose the original yanked contents when pasting in visual mode
map('x', '<leader>p', [["_dP]])
local diagnostic = require 'fschauen.diagnostic' local diagnostic = require 'fschauen.diagnostic'
-- navigate diagnostics -- navigate diagnostics