From 19b93fe836776ad00157738dc4f19024145e603f Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 3 Oct 2023 12:23:14 +0200 Subject: [PATCH] vimrc: fix WL clipboard again (1e22ee7 follow-up) --- .vim/vimrc | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 0c78781..e790a2d 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -852,13 +852,20 @@ nmap g :TestVisit " partially superseded by jasonccox/vim-wayland-clipboard (for "+) " still keeping the "* mappings " it however breaks -augroup wlclfixes - autocmd! - autocmd BufEnter * nunmap + - autocmd BufEnter * nunmap + - autocmd BufEnter * nunmap + - autocmd BufEnter * nunmap + -augroup END +if v:vim_did_enter + nunmap + + nunmap + + nunmap + + nunmap + +else + augroup wlclfixes + autocmd! + autocmd VimEnter * nunmap + + autocmd VimEnter * nunmap + + autocmd VimEnter * nunmap + + autocmd VimEnter * nunmap + + augroup END +endif " ------ wayland copy and pasting let s:env = toupper(substitute(system('uname'), '\n', '', ''))