From 86a45264bb20a918d428d8939ab16f701389498b Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 2 Mar 2026 00:51:30 +0100 Subject: Fixes vim multi-instance copy fails on first paste on wayland --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '.vimrc') 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 -- cgit v1.2.3