From dc55cf198d9e910609b3d4e75161094594f793dc Mon Sep 17 00:00:00 2001 From: Kiril Vladimirov Date: Thu, 24 Mar 2022 11:26:38 +0200 Subject: [PATCH] Use easier mapping to copy and paste under Wayland --- startup/mappings.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/startup/mappings.vim b/startup/mappings.vim index 13a6b8a..720d745 100644 --- a/startup/mappings.vim +++ b/startup/mappings.vim @@ -116,10 +116,9 @@ map g :Git if exists('$WAYLAND_DISPLAY') if executable('wl-copy') - xnoremap "+y y:call system("wl-copy", @") + xnoremap y y:call system("wl-copy", @") endif if executable('wl-paste') - nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p - nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '', '', 'g')p + nnoremap p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p endif endif -- 2.45.2