heavim/cfg/03-mouse.vim

18 lines
346 B
VimL
Raw Normal View History

" 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
2015-03-02 18:20:55 +01:00
nnoremap <silent> <Leader>M :call <SID>ToggleMouse()<cr>
2015-03-02 18:20:55 +01:00
vnoremap <silent> <C-c> "+y
2015-03-07 17:45:02 +01:00
set pastetoggle=<Leader>P