25 lines
760 B
Diff
25 lines
760 B
Diff
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
|
|
Description: Disabling mouse.
|
|
|
|
diff -Naurp vim.orig/runtime/defaults.vim vim/runtime/defaults.vim
|
|
--- vim.orig/runtime/defaults.vim
|
|
+++ vim/runtime/defaults.vim
|
|
@@ -70,18 +70,6 @@ sunmap Q
|
|
" Revert with ":iunmap <C-U>".
|
|
inoremap <C-U> <C-G>u<C-U>
|
|
|
|
-" In many terminal emulators the mouse works just fine. By enabling it you
|
|
-" can position the cursor, Visually select and scroll with the mouse.
|
|
-" Only xterm can grab the mouse events when using the shift key, for other
|
|
-" terminals use ":", select text and press Esc.
|
|
-if has('mouse')
|
|
- if &term =~ 'xterm'
|
|
- set mouse=a
|
|
- else
|
|
- set mouse=nvi
|
|
- endif
|
|
-endif
|
|
-
|
|
" Only do this part when Vim was compiled with the +eval feature.
|
|
if 1
|
|
|