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

View File

@ -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>
augroup wlclfixes if v:vim_did_enter
autocmd! nunmap <C-R>+
autocmd BufEnter * nunmap <C-R>+ nunmap <C-R><c-O>+
autocmd BufEnter * nunmap <C-R><c-O>+ nunmap <C-R><C-P>+
autocmd BufEnter * nunmap <C-R><C-P>+ nunmap <C-R><C-R>+
autocmd BufEnter * nunmap <C-R><C-R>+ else
augroup END augroup wlclfixes
autocmd!
autocmd VimEnter * nunmap <C-R>+
autocmd VimEnter * nunmap <C-R><c-O>+
autocmd VimEnter * nunmap <C-R><C-P>+
autocmd VimEnter * nunmap <C-R><C-R>+
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', '', ''))