Skip to content

Commit

Permalink
fix for (#844) Replace-paste at end of line incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Verheyden authored and siduck committed Feb 27, 2022
1 parent 0cf5d77 commit 5ec6112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/core/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 5ec6112

Please sign in to comment.