How to fix vim's default setting that enables visual mode on mouse click
A few years ago vim started to go into "visual" mode whenever I tried to copy text via the right click menu. Eventually I thought I had fixed it by setting up a /etc/vim/vimrc.local file like this:
source $VIMRUNTIME/defaults.vim
set mouse=
But then the issue cropped up again. Today I finally found the right GitHub issue with the information needed to fix it. You add the let line in the following code: