daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

Cannot disable mouse. #125

Open kalekundert opened 6 years ago

kalekundert commented 6 years ago

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

daa84 commented 6 years ago

for me call :set mouse= disables mouse

kalekundert commented 6 years ago

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.