diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 90cd6798..70cf9c7b 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/