From 5ec6112a59cab98e40847bff2e0f107cd03afb53 Mon Sep 17 00:00:00 2001 From: Ruben Verheyden Date: Sun, 27 Feb 2022 13:18:59 +0100 Subject: [PATCH] fix for (#844) Replace-paste at end of line incorrect --- lua/core/mappings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 90cd679..70cf9c7 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -26,7 +26,7 @@ local M = {} M.misc = function() local function non_config_mappings() -- Don't copy the replaced text after pasting in visual mode - map_wrapper("v", "p", '"_dP') + map_wrapper("v", "p", 'p:let @+=@0') -- Allow moving the cursor through wrapped lines with j, k, and -- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/