summaryrefslogtreecommitdiffstats
path: root/runtime/defaults.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/defaults.vim')
-rw-r--r--runtime/defaults.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 255b67b470..e7929eacd4 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -75,8 +75,14 @@ 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')
- set mouse=a
+ if &term =~ 'xterm'
+ set mouse=a
+ else
+ set mouse=nvi
+ endif
endif
" Switch syntax highlighting on when the terminal has colors or when using the