add copy to clipboard in vim on wayland
This commit is contained in:
parent
7426c2a7b1
commit
463a35aed9
1 changed files with 6 additions and 0 deletions
6
vimrc
6
vimrc
|
@ -542,3 +542,9 @@ nmap <Leader>hn <Plug>(GitGutterNextHunk)
|
|||
nmap <Leader>hp <Plug>(GitGutterPrevHunk)
|
||||
|
||||
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>
|
||||
|
|
Loading…
Reference in a new issue