fix for (#844) Replace-paste at end of line incorrect

This commit is contained in:
Ruben Verheyden 2022-02-27 13:18:59 +01:00 committed by siduck
parent 0cf5d77f72
commit 5ec6112a59
1 changed files with 1 additions and 1 deletions

View File

@ -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<CR>')
-- Allow moving the cursor through wrapped lines with j, k, <Up> and <Down>
-- http://www.reddit.com/r/vim/comments/2k4cbr/problem_with_gj_and_gk/