heavim/cfg/03-mouse.vim
Emmanuel BENOîT b0647949f8 Style and shortcut tweaks. Added vim-which-key.
* Shortcut changes to make the Leader-based shortcuts easier to use
 * Install vim-which-key
 * Style fixes and changes
 * Reorganised some of the settings
2020-12-07 16:36:17 +01:00

14 lines
293 B
VimL

" Enable mouse by default, provide <Leader>om shortcut to toggle on/off
function! <SID>ToggleMouse()
if &g:mouse != ""
echo "Mouse disabled."
set mouse=
else
echo "Mouse enabled."
set mouse=a
endif
endfunction
set mouse=a
nnoremap <silent> <Leader>om :call <SID>ToggleMouse()<cr>