From cec0aa4de15d7ec0739fc4f3ab6783a7ec8567dc Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Mon, 8 Jul 2024 09:21:34 +0200 Subject: [PATCH] p --- lua/custom/maps/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index 4789429..fb7d3f5 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -85,6 +85,9 @@ vim.keymap.set('t', '', vim.api.nvim_replace_termcodes('', true, vim.keymap.set({ 'n', 'v' }, 'y', '"+y', { desc = '[Y]ank to system' }) vim.keymap.set({ 'n', 'v' }, 'Y', '"+Y', { desc = '[Y]ank to system' }) vim.keymap.set({ 'n', 'v' }, 'yy', '"+yy', { desc = '[Y]ank to system' }) + +-- paste from system clipboard +vim.keymap.set({ 'n', 'v' }, 'p', '"+p', { desc = '[P]aste from system' }) vim.keymap.set({ 't', 'n', 'v' }, '', '"+pi', { desc = 'Paste the system clipboard' }) -- add lines from normal and visual, without insert mode