Open Gabirel opened 7 years ago
How to make the change permanent? I've tried putting it in ~/.SpaceVim.d/autoload/xxx.vim and it still starts with mouse on.
@Patola The correct config file: ~/.SpaceVim.d/init.vim
. Try this path.
It worked. Thank you very much.
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 git -C ~/.SpaceVim pull
to update and it changed nothing. (Using SpaceVim with neovim)
in the end resolved by editting ~/.config/nvim/lua/core/init.lua
and changing opt.mouse = "a"
to opt.mouse = ""
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?
BTW, you can enable it by
set mouse=a
or by deleting your config about mouse since SpaceVim has default value.