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