Emmanuel BENOîT
b0647949f8
* Shortcut changes to make the Leader-based shortcuts easier to use * Install vim-which-key * Style fixes and changes * Reorganised some of the settings
14 lines
293 B
VimL
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>
|