neovim-gtk
neovim-gtk copied to clipboard
Cannot disable mouse.
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
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.