Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable mouse in vim window when it's enabled by "set mouse = a"?

Tags:

vim

macos

set

mouse

Hi: I'm using vim and I've set mouse=a in my .vimrc, so upon startup, vim supports mouse cursor. But some times I need to copy text from terminal, so I need to shut down mouse support in vim. I tried set mouse=c but the mouse still works in my mac terminal.

Is there a way to do this? Thanks!

like image 330
Hind Forsum Avatar asked Sep 13 '25 13:09

Hind Forsum


1 Answers

Try

:set mouse-=a

The -= removes any active option.

like image 150
builder-7000 Avatar answered Sep 16 '25 02:09

builder-7000