Home > Mobile >  vim mouse mode disable on .vimrc
vim mouse mode disable on .vimrc

Time:04-05

If I set :set mouse-=a to .vimrc, the highlight color will not be seen when I open the file with vim.

how can i set :set mouse-=a automatically when I use the vim editor with previous feature(color, etc.)?

I tested on KALI linux.

CodePudding user response:

The syntax in .vimrc is set mouse=a.

You only use a preceding colon when you are using the command pallet accesed by pressing escape key.

CodePudding user response:

The correct syntax in .vimrc to enable your mouse's usage is the following:

set mouse=a

It appears, according to your question, that you have added a hyphen character(-) before the equals sign, making it -=, when it should just be an equals sign (=).

Could you please make sure to remove the hyphen and see if it works after that?

  • Related