commit 846cc522c1ecedba156d9bad20777cb3271bc468
parent 2fa64264867c6387f8e7c64e30a1f6f6b3525dbe
Author: Chris Bracken <chris@bracken.jp>
Date: Tue, 24 May 2022 22:43:59 -0700
Disable mouse selection in xterm
This disables visual selection using the mouse in xterm, which is
frustrating when you just want to use the OS copy/paste functions on the
contents of the xterm window, not actually manipulate the vim visual
selection.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.vim/vimrc b/.vim/vimrc
@@ -41,6 +41,9 @@ map <S-Insert> <MiddleMouse>
" Kill ex mode.
noremap Q <NOP>
+" Disable visual-mode mouse select.
+set mouse-=a
+
" Kill arrow keys, for great justice.
noremap <Up> <NOP>
noremap <Down> <NOP>