I saw completely disable mouse in console vim on Stack Overflow. It sounded like exactly what I wanted, but there the problem was related to Cygwin, so the title was a misnomer.
I want to know how to completely disable all mouse interactions in vim on the console. I don't want scrolling, selecting, clicking, or otherwise looking at the mouse to have any effect within vim.
I like having the mouse in the console, just not when I'm using vim. Is this possible?
I have a laptop with ubuntu installed on it and when I type, occasionally the touch pad mouse decides to randomly click or drag between some random coordinates on the screen, even when I try my hardest not to touch the damned thing. This has the effect of me typing code in the wrong places all the time, and it's getting really old because sometimes it introduces subtle irreversible bugs into my code.
I've been able to get rid of scrolling and visual select using the commands below in my
.vimrc, but it still will relocate the cursor when I click.
" disable mouse interactions " set mouse=nicr map <ScrollWheelUp> <nop> map <S-ScrollWheelUp> <nop> map <C-ScrollWheelUp> <nop> map <ScrollWheelDown> <nop> map <S-ScrollWheelDown> <nop> map <C-ScrollWheelDown> <nop> map <ScrollWheelLeft> <nop> map <S-ScrollWheelLeft> <nop> map <C-ScrollWheelLeft> <nop> map <ScrollWheelRight> <nop> map <S-ScrollWheelRight> <nop> map <C-ScrollWheelRight> <nop>
What else do I need to do?
P.S. I tried
set mouse=, but that seems to reenable visual select...