From ade903e01ab9c1676ee4489cc2c90a0826ad346f Mon Sep 17 00:00:00 2001 From: Kuoi Date: Sun, 26 Jun 2022 01:39:59 +0100 Subject: [PATCH] avoid strange behavior in some terminal --- executable_dot_vimrc | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/executable_dot_vimrc b/executable_dot_vimrc index 29a7132..8783a23 100644 --- a/executable_dot_vimrc +++ b/executable_dot_vimrc @@ -47,20 +47,11 @@ augroup resCur autocmd BufReadPost * call setpos(".", getpos("'\"")) augroup END " 快捷键设置 -vmap "+y -"imap v"+y -"nmap v"+y - -" support wayland -xnoremap "+y y:call system("wl-copy", @") -nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p -nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '', '', 'g')p - +vmap "+y y:call system("wl-copy", @") +nmap "+p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p +nmap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '', '', 'g')p +imap "+p :let @"=substitute(system("wl-paste --no-newline"), '', '', 'g')p vmap "+c -"map "+gP -nmap i"+gP -vmap "+p -imap "+ imap :w nmap :wq imap :wq