vimrc: fix wayland clipboard

This commit is contained in:
surtur 2023-09-28 23:45:11 +02:00
parent 0fcee239bc
commit 1e22ee7013
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -851,6 +851,15 @@ nmap <silent> <leader>g :TestVisit<CR>
" partially superseded by jasonccox/vim-wayland-clipboard (for "+)
" still keeping the "* mappings
" it however breaks <c-r>
augroup wlclfixes
autocmd!
autocmd BufEnter * nunmap <C-R>+
autocmd BufEnter * nunmap <C-R><c-O>+
autocmd BufEnter * nunmap <C-R><C-P>+
autocmd BufEnter * nunmap <C-R><C-R>+
augroup END
" ------ wayland copy and pasting
let s:env = toupper(substitute(system('uname'), '\n', '', ''))
if s:env =~# 'LINUX' && executable('wl-copy')