add copy to clipboard in vim on wayland

This commit is contained in:
Jakobus Schürz 2023-06-12 09:37:56 +02:00
parent 7426c2a7b1
commit 463a35aed9

6
vimrc
View file

@ -542,3 +542,9 @@ nmap <Leader>hn <Plug>(GitGutterNextHunk)
nmap <Leader>hp <Plug>(GitGutterPrevHunk) nmap <Leader>hp <Plug>(GitGutterPrevHunk)
autocmd BufWritePre /etc/bind/vpn/db.* Soa autocmd BufWritePre /etc/bind/vpn/db.* Soa
" Yank into all these at once:
" vim y/p register
" wayland primary
" wayland clipboard
xnoremap <silent> <leader>y y:call system("wl-copy --trim-newline", @*)<cr>:call system("wl-copy -p --trim-newline", @*)<cr>