Preventing using the mouse in vim from sending it into visual mode and breaking copy capability

From my ~/Projects/mlncn/scripts/.vim_custom:

" Allow the mouse to be used within terminal vim.
" There is now officially no need for gvim.
" Thanks to Chris Thompson and
" To keep copy-paste working use -r not -a
" Alternate solution see
:set mouse=r

… currently this still causes line numbers to be copied.

I think i’ll comment this out from my vim_custom:

" Turn line numbers on by default
:set number

And toggle it on with :set number and off with :set nonumber as needed.