b3e4860
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
b3e4860
index f1d5cd1..b08de8e 100644
b3e4860
--- a/runtime/defaults.vim
b3e4860
+++ b/runtime/defaults.vim
b3e4860
@@ -74,18 +74,6 @@ sunmap Q
1b2faea
 " Revert with ":iunmap <C-U>".
1b2faea
 inoremap <C-U> <C-G>u<C-U>
1b2faea
 
1b2faea
-" In many terminal emulators the mouse works just fine.  By enabling it you
1b2faea
-" can position the cursor, Visually select and scroll with the mouse.
1b2faea
-" Only xterm can grab the mouse events when using the shift key, for other
1b2faea
-" terminals use ":", select text and press Esc.
1b2faea
-if has('mouse')
1b2faea
-  if &term =~ 'xterm'
1b2faea
-    set mouse=a
1b2faea
-  else
1b2faea
-    set mouse=nvi
1b2faea
-  endif
1b2faea
-endif
1b2faea
-
1b2faea
 " Only do this part when Vim was compiled with the +eval feature.
1b2faea
 if 1
1b2faea
 
b3e4860
diff --git a/src/testdir/test_balloon.vim b/src/testdir/test_balloon.vim
b3e4860
index ed0c6c1..90c8c40 100644
b3e4860
--- a/src/testdir/test_balloon.vim
b3e4860
+++ b/src/testdir/test_balloon.vim
1b2faea
@@ -9,6 +9,7 @@ source screendump.vim
1b2faea
 CheckScreendump
1b2faea
 
1b2faea
 let s:common_script =<< trim [CODE]
1b2faea
+  set mouse=a
1b2faea
   call setline(1, ["one one one", "two tXo two", "three three three"])
380067b
   set balloonevalterm balloonexpr=MyBalloonExpr()..s:trailing balloondelay=100
380067b
   let s:trailing = '<'  " check that script context is set
b3e4860
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim
b3e4860
index b91689e..c6b70d1 100644
b3e4860
--- a/src/testdir/test_popupwin.vim
b3e4860
+++ b/src/testdir/test_popupwin.vim
1b2faea
@@ -553,6 +553,7 @@ func Test_popup_drag()
1b2faea
   " create a popup that covers the command line
1b2faea
   let lines =<< trim END
1b2faea
 	call setline(1, range(1, 20))
1b2faea
+	set mouse=a
1b2faea
 	split
1b2faea
 	vsplit
1b2faea
 	$wincmd w
b3e4860
@@ -621,6 +622,7 @@ func Test_popup_drag_minwidth()
b3e4860
 
b3e4860
   " create a popup that does not fit
b3e4860
   let lines =<< trim END
b3e4860
+      set mouse=a
b3e4860
       call range(40)
b3e4860
 	      \ ->map({_,i -> string(i)})
b3e4860
 	      \ ->popup_create({
b3e4860
@@ -669,6 +671,7 @@ func Test_popup_drag_termwin()
1b2faea
   let lines =<< trim END
1b2faea
 	set foldmethod=marker
1b2faea
 	call setline(1, range(100))
380067b
+	set mouse=a
1b2faea
 	for nr in range(7)
1b2faea
 	  call setline(nr * 12 + 1, "fold {{{")
1b2faea
 	  call setline(nr * 12 + 11, "end }}}")
b3e4860
@@ -722,6 +725,7 @@ func Test_popup_close_with_mouse()
1b2faea
 
1b2faea
   let lines =<< trim END
1b2faea
 	call setline(1, range(1, 20))
1b2faea
+	set mouse=a
1b2faea
 	" With border, can click on X
1b2faea
 	let winid = popup_create('foobar', #{
1b2faea
 	      \ close: 'button',
b3e4860
@@ -1557,6 +1561,7 @@ func Test_popup_beval()
1b2faea
   let lines =<< trim END
1b2faea
 	call setline(1, range(1, 20))
1b2faea
 	call setline(5, 'here is some text to hover over')
1b2faea
+	set mouse=a
1b2faea
 	set balloonevalterm
1b2faea
 	set balloonexpr=BalloonExpr()
1b2faea
 	set balloondelay=100
b3e4860
@@ -2262,6 +2267,7 @@ func Test_popup_scrollbar()
1b2faea
 
1b2faea
   let lines =<< trim END
1b2faea
     call setline(1, range(1, 20))
1b2faea
+    set mouse=a
1b2faea
     hi ScrollThumb ctermbg=blue
1b2faea
     hi ScrollBar ctermbg=red
1b2faea
     let winid = popup_create(['one', 'two', 'three', 'four', 'five',