diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 32e4f43..e184153 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -21,6 +21,12 @@ M.general = { "close buffer", } }, + + x = { + -- Don't copy the replaced text after pasting in visual mode + -- https://vim.fandom.com/wiki/Replace_a_word_with_yanked_text#Alternative_mapping_for_paste + ["p"] = { 'p:let @+=@0:let @"=@0', opts = { silent = true } }, + }, } M.nvimtree = { @@ -32,7 +38,7 @@ M.nvimtree = { }, } -M.kterm= { +M.kterm = { plugin = true, t = {