heavim/cfg/03-mouse.vim
Emmanuel BENOîT d6f121f28f Starting port of old configuration
Also, documenting it as I go. Especially keyboard shortcuts.
2015-03-02 17:58:40 +01:00

14 lines
291 B
VimL

" Enable mouse by default, provide <Leader>M 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>M :call <SID>ToggleMouse()<cr>