[vim] Auto disable any mouse

This commit is contained in:
Eric Teunis de Boone 2022-03-30 18:59:39 +02:00
parent 97ab089316
commit 2decd7cbb2
1 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,7 @@ if has("patch-7.4.710")
else
set listchars=tab:→\ ,nbsp:␣,trail:•,eol,precedes,extends
endif
set showbreak=\\
"Folding
"augroup vimrc
@ -39,10 +40,15 @@ endif
"augroup END
" search for visually hightlighted text
vnoremap <c-f> y<ESC>/<c-r>"<CR>
vnoremap <c-f> y<ESC>/<c-r>"<CR>
set grepprg=grep\ -nH\ $*
" Disable any mousing
if has("mouse")
set mouse=
endif
" Don't wake up system with blinking cursor:
" http://www.linuxpowertop.org/known.php
let &guicursor = &guicursor . ",a:blinkon0"