vimrc: fix WL clipboard again (1e22ee7 follow-up)
This commit is contained in:
parent
e44254b980
commit
19b93fe836
15
.vim/vimrc
15
.vim/vimrc
@ -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', '', ''))
|
||||||
|
Loading…
Reference in New Issue
Block a user