vimrc: fix wayland clipboard
This commit is contained in:
parent
0fcee239bc
commit
1e22ee7013
@ -851,6 +851,15 @@ 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>
|
||||||
|
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
|
" ------ wayland copy and pasting
|
||||||
let s:env = toupper(substitute(system('uname'), '\n', '', ''))
|
let s:env = toupper(substitute(system('uname'), '\n', '', ''))
|
||||||
if s:env =~# 'LINUX' && executable('wl-copy')
|
if s:env =~# 'LINUX' && executable('wl-copy')
|
||||||
|
Loading…
Reference in New Issue
Block a user