vimrc: fix WL clipboard again (1e22ee7 follow-up)

This commit is contained in:
surtur 2023-10-03 12:23:14 +02:00
parent e44254b980
commit 19b93fe836
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -852,13 +852,20 @@ nmap <silent> <leader>g :TestVisit<CR>
" partially superseded by jasonccox/vim-wayland-clipboard (for "+) " partially superseded by jasonccox/vim-wayland-clipboard (for "+)
" still keeping the "* mappings " still keeping the "* mappings
" it however breaks <c-r> " it however breaks <c-r>
if v:vim_did_enter
nunmap <C-R>+
nunmap <C-R><c-O>+
nunmap <C-R><C-P>+
nunmap <C-R><C-R>+
else
augroup wlclfixes augroup wlclfixes
autocmd! autocmd!
autocmd BufEnter * nunmap <C-R>+ autocmd VimEnter * nunmap <C-R>+
autocmd BufEnter * nunmap <C-R><c-O>+ autocmd VimEnter * nunmap <C-R><c-O>+
autocmd BufEnter * nunmap <C-R><C-P>+ autocmd VimEnter * nunmap <C-R><C-P>+
autocmd BufEnter * nunmap <C-R><C-R>+ autocmd VimEnter * nunmap <C-R><C-R>+
augroup END augroup END
endif
" ------ wayland copy and pasting " ------ wayland copy and pasting
let s:env = toupper(substitute(system('uname'), '\n', '', '')) let s:env = toupper(substitute(system('uname'), '\n', '', ''))