summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-21 15:27:10 +0200
committerLinnnus <[email protected]>2023-10-21 21:23:35 +0200
commitde26d9ede763f04517d1995b69c1c7611502ef59 (patch)
tree1d1d33ef223a43363b5d48e6ca1f08cd14a4a54b
parent97e1f6b70d45aeccc5e4d6bb15ea47f6adc7f107 (diff)
nvim: set mouse=nicr
-rw-r--r--home/neovim/init.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/home/neovim/init.vim b/home/neovim/init.vim
index 43b1f24..b2da2aa 100644
--- a/home/neovim/init.vim
+++ b/home/neovim/init.vim
@@ -42,8 +42,12 @@ set matchtime=2
set listchars=tab:>-,eol:$,space:.,trail:@,nbsp:%
-" Enable mouse input
-set mouse=a
+" Enable mouse input for all modes but visual.
+"
+" I disable mouse in visual mode so I can select text in the terminal using
+" the mouse. This is useful when copying text from a remote instance of vim
+" SSH session where "* doesn't work.
+set mouse=nicr
" sussy sus the sussy sus
set nowrap