Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable mouse-using in SpaceVim #28

Open
Gabirel opened this issue Jun 23, 2017 · 5 comments
Open

Disable mouse-using in SpaceVim #28

Gabirel opened this issue Jun 23, 2017 · 5 comments

Comments

@Gabirel
Copy link
Owner

Gabirel commented Jun 23, 2017

Disable mouse-using in SpaceVim

Introduction

Some just doesn't like mouse-using in vim. But SpaceVim enables it by default.

You can see details in :h mouse

How to disable it?

set mouse=

BTW, you can enable it by set mouse=a or by deleting your config about mouse since SpaceVim has default value.

@Patola
Copy link

Patola commented Jan 13, 2022

How to make the change permanent? I've tried putting it in ~/.SpaceVim.d/autoload/xxx.vim and it still starts with mouse on.

@Gabirel
Copy link
Owner Author

Gabirel commented Jan 13, 2022

@Patola The correct config file: ~/.SpaceVim.d/init.vim. Try this path.

@Patola
Copy link

Patola commented Jan 13, 2022

It worked. Thank you very much.

@Patola
Copy link

Patola commented Apr 4, 2024

It stopped working and I don't know why. I even added additional traps to unset mouse but it still does it:

$ cat ~/.SpaceVim.d/init.vim 
set mouse=

function! myspacevim#before() abort
  set mouse=
endfunction

function! myspacevim#after() abort
  set mouse=
endfunction
$ cat ~/.SpaceVim.d/autoload/patola.vim 
function! patola#before() abort
    let g:neomake_c_enabled_makers = ['clang']
    " you can defined mappings in bootstrap function
    " for example, use kj to exit insert mode.
    set mouse=
endfunction

function! patola#after() abort
    " you can remove key binding in bootstrap_after function
    set mouse=
endfunction

$ cat ~/.SpaceVim.d/autoload/myspacevim.vim 
function! myspacevim#before() abort
  set mouse=
endfunction

function! myspacevim#after() abort
  set mouse=
endfunction

And I still have to :set mouse= when I start. What's happening, how can I debug it? I did the git -C ~/.SpaceVim pull to update and it changed nothing. (Using SpaceVim with neovim)

@Patola
Copy link

Patola commented Apr 4, 2024

in the end resolved by editting ~/.config/nvim/lua/core/init.lua and changing opt.mouse = "a" to opt.mouse = ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants