From 008f8260c569515ca1fce26296be7e0b04821051 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Thu, 8 Sep 2022 23:04:25 +0530 Subject: [PATCH] fix pasing in select mode @lucario387 --- lua/core/mappings.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 = {