From 643e1be34906be5f058791ac2bf6b4748e19f35a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 19 Sep 2021 11:45:54 +0530 Subject: [PATCH] nvim: keymappings: Add mappings to paste from + & * register --- nvim/.config/nvim/lua/keymappings.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index 8422b8e..8bc21fc 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -8,6 +8,8 @@ remap('n', 'w', ':w', { noremap = true }) -- Copy to clipboard remap('v', 'y', '"+y', { noremap = true }) remap('v', 'Y', '"*y', { noremap = true }) +remap('n', 'p', '"+p', { noremap = true }) +remap('n', 'P', '"*p', { noremap = true }) -- Search and Replace remap('n', 'c.', ':%s//g', { noremap = true }) remap('n', 'c.', ':%s/\\<\\>//g', { noremap = true })