Open kalekundert opened 6 years ago
for me call :set mouse=
disables mouse
Your comment got me to look at this a little more closely, and now I think the problem is specifically with how .config/nvim/init.vim
is loaded. :set mouse=
does disable the mouse for me if I enter that command manually during an editor session. But whatever value I put in my init.vim
config file seems to be ignored. I tested this by creating a new config file with only one command:
set mouse=
I then ran nvim and nvim-gtk. In both programs, :set mouse?
gave the expected output (an empty string). But only nvim respected the setting; nvim-gtk still allowed me to move the cursor by clicking.
I use
set mouse=''
in my vimrc file to prevent the cursor from moving when I click on a window to focus it. This setting works in regular gvim, but seems to be ignored by nvim-gtk.Technical information