neovim-gtk icon indicating copy to clipboard operation
neovim-gtk copied to clipboard

Cannot disable mouse.

Open kalekundert opened this issue 6 years ago • 2 comments

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

  • OS: Fedora Linux
  • Neovim version: v0.2.2
  • Neovim-Gtk build version: 21e74c7ca7468a53ce1cbb449a19b8144f06836f

kalekundert avatar Jul 13 '18 18:07 kalekundert

for me call :set mouse= disables mouse

daa84 avatar Jul 17 '18 09:07 daa84

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.

kalekundert avatar Jul 17 '18 15:07 kalekundert