commit f9a18702b92a8c8cf7375c27ca4e87ee14367611
parent 1af08948bacf61d18b27f956fdbad504e8710b73
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sat, 9 Oct 2021 12:02:53 +0200
vim: fix mouse in st
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -600,8 +600,10 @@ set wildmenu
" Allow the mouse, good for e.g. resizing splits
set mouse=a
" fix issue with not being able to drag resize split windows in tmux
-if &term =~ '^screen' || $TMUX !=# ""
+if &term =~# '^screen' || $TMUX !=# ""
set ttymouse=xterm2
+elseif &term =~# '^st-'
+ set ttymouse=sgr
endif
" How to split new windows