summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-03-02 00:51:30 +0100
committerAhmed Abdelhalim <[email protected]>2026-03-02 00:51:30 +0100
commit86a45264bb20a918d428d8939ab16f701389498b (patch)
treee6674380b9a054f660b18e6fff4da026aecd2e54
parente6de2fbdf210bf110dfe43d8f8a6cf89bcf07fcb (diff)
Fixes vim multi-instance copy fails on first paste on wayland
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 3dbf3a8..ec8abe8 100644
--- a/.vimrc
+++ b/.vimrc
@@ -76,6 +76,9 @@ let &colorcolumn="80,".join(range(121,125),",") " Highlight the 80, 121-> column
set encoding=utf-8 " set the encoding to utf-8
set t_Co=256 " set terminal color 265
set clipboard=unnamedplus,unnamed " fix not copying between clipboard and vim
+if !empty($WAYLAND_DISPLAY) && executable('wl-copy')
+ autocmd TextYankPost * silent! call system('wl-copy', @")
+endif
set backspace=indent,eol,start " fix backspace not deleteing existing text
set number " set numbers column on the left
set complete-=i " Faster vim completion